Lost Password?
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size
  • default color
  • red color
  • green color
Member Area

Web Code

Home arrow Scripts arrow JavaScript arrow Add to favorites script, Bookmark script     
Add to favorites script, Bookmark script PDF Print E-mail
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>:


function addbookmark()
bookmarktitle="your site"
if (document.all)


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

src="http://www.webmasterspy.com/images/favorites1.gif" alt="Add to
Favorites" name="Image40" border="0" height="28"

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

Code:* Code

Add as favourites (1039) | Quote this article on your site | Views: 17410

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 )
< Prev

Popular of Late