Author Options:

Cross Browser "Set as Homepage" html/javascript code ? Answered

I am having trouble with adding a "set as homepage" button to my website, the code i tried dosent want to work in any of the good browsers firefox, opera, chrome, but it does work in internet explorer. Thanks in advance for any help! Heres the code I have been trying:

<a href="#" onclick="this.style.behavior='url(#default#homepage)';
as Homepage</a><br>


Check<a href="http://javascript.internet.com/page-details/set-homepage-link.html"> here</a>. It appears that there is no universal code, so this script identifies your browser and displays the one that works.<br />

Have you looked for ready made source Search for "set as homepage javascript"<br /> e.g. this:<br /> <br /> <a href="http://javascript.internet.com/page-details/set-homepage-link.html">javascript page</a><br /> <br /> L<br />