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

Comments are closed.