Forum Moderators: open

Message Too Old, No Replies

Script to "Add To Favorites"

Script - Add to Favorites - Dreamweaver

         

gelcap

5:09 pm on Nov 30, 2004 (gmt 0)



I want to have a button on my site that will add the page that is being viewed to the user's "Favorites".

I am using Dreamweaver MX 2004. I also use Microsoft Internet Explorer.

How can I write such a script? Is there one script for all browsers?

Thanks for your help.

BlobFisk

5:21 pm on Nov 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, gelcap!

There are many examples out there that show you how to do this, a search engine search for "bookmark script" will find them for you.

It used to be quite difficult to make a cross browser version of this, but now you can do this using window.external.AddFavorite for IE and window.sidebar.addPanel for Mozilla/Netscape.

HTH

[edited by: BlobFisk at 5:23 pm (utc) on Nov. 30, 2004]

Reflection

5:51 pm on Nov 30, 2004 (gmt 0)

10+ Year Member



I don't really understand why people add this to their sites. If a user knows how to use their bookmarks/favorites, they now how to bookmark a page. If they don't know how to use bookmarks/favorites, the script isn't going to help them much.

MatthewHSE

5:57 pm on Nov 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My visitors love it and use it. I have a lot of articles and such that people would like to save for future reference. Having the bookmark link prominently on the page makes it easy for them to do it. I'd recommend this type of script to anybody, as long as its presented as a service to the user and not a plea by the webmaster. (Puhleeeze bookmark my site? ;) )