you are here: codestackercodes [RSS]add to bookmarks using jquery

add to bookmarks using jquery

   var bookmarkUrl = this.href;
   var bookmarkTitle = this.title;
   if ($.browser.mozilla) // For Mozilla Firefox Bookmark

	window.sidebar.addPanel(bookmarkTitle, bookmarkUrl,"");
   else if($.browser.msie || $.browser.webkit) // For IE Favorite

	window.external.AddFavorite( bookmarkUrl, bookmarkTitle); 
   else if($.browser.opera ) // For Opera Browsers

   else // for other browsers which does not support

        alert('Please hold CTRL+D and click the link to bookmark it in your browser.');
   return false;