Bookmark code for major browser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maheswaran
    New Member
    • Mar 2007
    • 190

    Bookmark code for major browser

    HI Guys,

    I need bookmark code for all major browser , i searched all the way but i could not get the result :( . Could any body share the link.

    Here my code wok partially

    Code:
     var url = this.href;
     var title = document.title;
    					
    if (window.sidebar) { // Mozilla Firefox Bookmark
     window.sidebar.addPanel(title, url,"");
    } else if( window.external ) { // IE Favorite
    						window.external.AddFavorite( url, title);
    } else if(window.opera) { // Opera 7+
    	return false; 
    // do nothing - the rel="sidebar" should do the trick
    }
    else if(window.chrome){
    alert('Press ctrl+D to bookmark (Command+D for macs) after you click Ok');	} 
    else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)
    						 alert('Unfortunately, this browser does not support the requested action,'+ ' please bookmark this page manually.');
    					}
    Its not work IE 7, Chrome,opera. Partially work in Mozilla.

    Help me pls
Working...