loader

Bookmark code for all Browsers Print

  • 9

Re: how to create an "add this site to your bookmarks" link that works in both Firefox and/or Internet Explorer

This function works well in all browsers:
Paste this code between the "header" tags on your web page.
Code:
function addBookmark(title,url) { if (window.sidebar) { window.sidebar.addPanel(title, url,""); } else if( document.all ) { window.external.AddFavorite( url, title); } else if( window.opera && window.print ) { return true; } }


Paste this code between the "body" tags on your web page wherever you want the link to work as a bookmark link.


Was this answer helpful?

« Back