Add to favorites script, Bookmark script
Written by Administrator   
Thursday, 18 October 2007

If you want to add a little star on your page that when click upon the user will save your site to his favorites, add this to your page, below the <head>:

 

<script
language="JavaScript">
function addbookmark()
{
bookmarkurl="http://www.yoursite.com/"
bookmarktitle="your site"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
</script>

 

Then put this part where you want to see the actual button (you can also use text link if you want):

<a
href="javascript:addbookmark()"><img
src="http://www.webmasterspy.com/images/favorites1.gif" alt="Add to
Favorites" name="Image40" border="0" height="28"
width="33"></a>

Now you can see a little bookmark star on your page. When you click on it you'll be asked to save the page to your favorites.


Related Items:

Write Comment
Name:
Title:
Comment:

Code:* Code


Add as favourites (988) | Quote this article on your site | Views: 17122

Comments (2)
1. 14-10-2008 17:27
OK with MSIE but is there a variation that will work with Firefox browsers?
Written by Geoff Riggs (Guest)
2. 31-01-2008 04:45
nice script
helps a lot
Written by oren (Guest)
Last Updated ( Monday, 23 April 2012 )