Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,466
    Thanks
    15
    Thanked 0 Times in 0 Posts

    make site default browser page

    I have the following script that makes my url the default page.

    It works on internet exploror but not firefox.
    How can I get it working on firefox as well?



    <a style="cursor:hand;font-family:arial"onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.mystite..com'); class=text2"><b>Make us your Homepage</b></a>

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    It only works on Internet Explorer because of a security hole in that browser and will never work in any other browser. It wont work on IE where the computer has been updated to plug the security hole either. Most browser hijackers will plug the security hole for you after they hijack your home page or you can plug it yourself before the hijackers get there.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    Senior Coder
    Join Date
    May 2004
    Posts
    1,466
    Thanks
    15
    Thanked 0 Times in 0 Posts
    so is there anyway of making this work?

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Only on Internet Explorer when the security isn't set up to block it. Other browsers don't allow the home page to be set from anywhere other than the browser menu.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

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