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

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)';
this.setHomePage('http://www.mr.search.net.tc');">Set
as Homepage</a><br>

Padlock7 years ago
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 />
lemonie7 years ago
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 />