Step 1: Add the below code to the section of your page:

<script type="text/javascript">

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
}
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}
</script>

Step 2: Create either an image or text link that will be used as the Bookmark Site link. For the href attribute, use the following code:

<a href="javascript:bookmarksite('Site Nmae', 'http://www.sitename.com')">Bookmark this site!</a>

Pin It on Pinterest

Share This