Its generally a good idea to let users of your site bookmark your page. While most browsers support this function through “Favourites”, why not make it easier for you site visitors. You more likely to get repeat visitor if your site is bookmarked.

Here is a simple JavaScript function you can use to create a bookmark.

function addbookmark() {
  bookmarkurl="http://www.mysite.com"
  bookmarktitle="BookMark Title of My Site"
  if (document.all)
    window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

Now create a text link which refers to the bookmark function as follows.

<a href="javascript:addbookmark()">Bookmark this Page</a>

Thats it. Feel free to replace the text with a graphic if you prefer.

PS. If you like this code sample, please link to our site (http://www.webmastersloom.com). It will be much appreciated.