Litle Black Book Of Html
BookMark

Making a BookMark Us Link

For your website to have traffic, people should remember your site and visit again. This problem was solved long time ago with browser's Bookmarks. Still, people are lazy and usually are not using it, unless you remind them. So a Bookmark us script on your site is very useful.

I will show you how you can easily create such a script for your site. The next script is compatible with the major browsers and easy to implement. Let us begin!

Place the following script into your <head>section in the page you need to use it:

 

<script type="text/javascript">

function bookmark_us(url, title){

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

Next, place the following code in order to show the link that opens browser's bookmark window:

<a href="javascript:bookmark_us('http://www.YourSite.com/YourPage.htm','List Me In Favorites as')">Bookmark Us!</a>

 

 

Page 11
<<<Go Back Home