Navigation:    Home arrow Bookmark Us Script
Bookmark Us Javascript PDF  
Digg Reddit Ma.gnolia Stumble Upon Facebook Twitter Google Yahoo! MyWeb Furl" BlinkList Technorati Mixx Bookmark

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.reconn.us','Reconn.us - Free PHP, Javascript Resources')">Bookmark us!</a>

That is all! You have now a full working bookmark us script.

 Of course, you will have to replace the link and title with your own. Also, instead of a text (in this case "Bookmark us!") you can use a picture or any other text you want.

 **Note: If your title contains quotes, you should escape them with backslash:

 <a href="javascript:bookmark_us('http://www.reconn.us','You\'ll find here lots of free resources!')">Bookmark us!</a>

Good luck!