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.
-And if you want it work in IE and firefox as well:
function addToBookMarks()
{
if(document.all)
window.external.AddFavorite(location.href,document.title);
else if(window.sidebar)window.sidebar.addPanel (document.title,location.href,'');
}
No comments:
Post a Comment