"Add To Favorites" script

He has: 688 posts

Joined: Feb 2001

An "Add To Favorites" script is easy if you only care about Internet Explorer.
<a href="javascript:window.external.AddFavorite('http://www.yoursite.com', 'Some text about your site')">Add this site to your favorites</a>'

But I'm having a difficult time finding a similar script that is cross browser. Confused Anybody have some Firefox friendly code?

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

I haven't actually tried it, but the site that gave the link to this said it was proven to work.

http://www.devpapers.com/article/156

-Greg

robfenn's picture

He has: 471 posts

Joined: Jun 2005

Feel free to use the one i coded for a client, it works in Firefox but can't say i've tested it elsewhere!

http://www.british-accreditation.co.uk/bookmark.js

SearchBliss's picture

He has: 267 posts

Joined: Feb 2005

Most people will add sites to their favorites on the browser without the link if they want to, so it really isn't needed. If you do want one and cannot find a cross browser version, you could always use a version that will only show if ther user has IE like this:

Add this site to your favorites

If the browser isn't IE then the code is hidden.

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.