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.

<script>
/* 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,""); }
}
</script>

<p><a href="#" title="blog.hao909.com - Bookmark" onclick="bookmarksite('blog.hao909.com'); return false;">Bookmark This Page</a></p>
affiliate_link
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):
Website:
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>