creating an 'add to bookmarks button' that works accorss different browsers

They have: 1 posts

Joined: Apr 2005

Hello, I am trying to create a "add to bookmarks" button that will work accross all of the popular browsers. Its easy enough for IE but I am not having any luck with firefox/netscape or opera. Although I would like it to work accross all the different browsers firefox/netscape and IE are the main ones I am conserned about. I have tried:

and

In the head:
<script type="text/javascript">
var bookmarkurl="http://www.yoursitehere.com"
var bookmarktitle="Your Site Title"
function addbookmark(){
if (document.all)
window.external.addFavorite(bookmarkurl,bookmarktitle)
}
</script>

And the body:
add this site to your favourites

Can anyone advise me on how I could go about this?

Thanks in advance

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

I'm thinking this is just an IE thing and won't work on other browsers.

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

alert("Netscape & Mozilla users: please hit Thank you.")

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.