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="'url(#default#homepage)';
as Homepage</a><br>

Padlock8 years ago
Check<a href=""> here</a>. It appears that there is no universal code, so this script identifies your browser and displays the one that works.<br />
lemonie8 years ago
Have you looked for ready made source Search for "set as homepage javascript"<br /> e.g. this:<br /> <br /> <a href="">javascript page</a><br /> <br /> L<br />