If it is required to add a facility on the webpage that users can click a button on the website and it will open up bookmark option. Following is the code that will perform this task.
function bookmark(url, description)
if (navigator.appName=='Microsoft Internet Explorer')
alert('This option works with IE only as of now.');
<input type="Button" ID="btnBookMark" onClick="bookmark('http://mypage.aspx','MyWebsite')" value="Bookmark" />
-And if you want it work in IE and firefox as well:function addToBookMarks()
window.external.AddFavorite(location.href,document.title);else if(window.sidebar)window.sidebar.addPanel (document.title,location.href,'');
Revision number 2, Thursday, March 13, 2008 4:54:22 AM by amrelgarhy
You must Login to comment.
Thu, Jan 1, 2009 11:03 PM
Thanks for the info. I was look exactly for this! Sandeep http://sandeep-aparajit.blogspot.com
Sat, May 23, 2009 5:35 AM
Simple and easy to understand.Thanks