How to add bookmark javascript in IE and Firefox

Adding the “bookmark this page” javascript below will help to encourage return visits. Your visitor simply clicks on the link and a popup prompt will appear so they can add your site to their favorites list.

/* bookmark site */
function bookmarksite(site) {
	if (document.all) { window.external.AddFavorite("http://www."+ site, site); }
 	else if (window.sidebar && window.sidebar.addPanel) { window.sidebar.addPanel(site,"http://www."+ site,""); }

<p><a href="#" title=" - Bookmark" onclick="bookmarksite(''); return false;">Bookmark This Page</a></p>
Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

No Responses to “How to add bookmark javascript in IE and Firefox”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>