SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    May 2005
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb this.setHomePage not working in mozilla

    I have a link in my website(abc.com) called "Make Us your home page". Once a user clicks it the link of my website(abc.com) becomes the home page for the browser.
    This works absolutely fine in IE, but does not work in mozilla. I get the following error in the console:

    Error: this.setHomePage is not a function

    The code i have used is as follows:

    <a href="#" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.abc.com');">Make us your homepage</a>

    I suppose that sethomepage function is not supported by mozilla, if that is so, then how do i achieve my objective in mozilla? Can any one pls help me?

  2. #2
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    Plano
    Posts
    643
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is javascript, try asking in the javascript forum you may get better response.

    my guess is that the function isn't supported by mozilla.

  3. #3
    SitePoint Wizard bronze trophy Immerse's Avatar
    Join Date
    Mar 2006
    Location
    Netherlands
    Posts
    1,661
    Mentioned
    7 Post(s)
    Tagged
    1 Thread(s)
    XtrEM3 is right, this is an Internet Explorer only function...

  4. #4
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You won't make Mozilla to set the homepage, instead provide the directions for your visitor on how to set their homepage manually.
    Saul


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •