The Web Development Blog has moved to Please visit me there to read the latest entries and to update your bookmarks and RSS feeds.

March 07, 2005

Javascript - 'Bookmark this page!'

Use this little javascript in your pages to enable the user to automatically "bookmark" your webpage.

Yes, I know, the feature is already available to anybody through the browser toolbar itself... but, by mentioning it on your page and creating this link, you draw attention to content that's deserving of a bookmark.

Here's how you do it. Place the following code somewhere in your page. It's a good idea to put this in the upper right so the user will see it upon entering the page. Make sure it's all on one line, no spaces except for the title of the page and the text on the screen.

< a href="javascript:window.external.AddFavorite
('','Case Web Development Blog-Tips and Tricks')">Bookmark this page! < /a>

Change the text in the example to your own information and post this to an important page in your web presence. Maybe your homepage?

Hope this helps!

StumbleUpon Toolbar Stumble It! AddThis Social Bookmark Button

Posted by: Kevin Adams March 7, 2005 11:52 AM | Category: Tips and Tricks


Trackback URL for this entry is: Javascript - 'Bookmark this page!'



another test

Posted by jms18 on March 29, 2005 06:19 PM


and some more testing

Posted by jms18 on March 29, 2005 06:20 PM



Posted by cool on March 30, 2005 09:14 AM

Post a comment

Posted by: kla3 (Kevin Adams) March 7, 2005 11:52 AM | Comments (3) | Trackback