Cross Browser Add to Favorites Javascript

by on July 9th, 2007

Creating a link for bookmarking web page is easy. Lets read this tutorial which will enable you to create a link useful for users to bookmark your website.

Head Section Code
<script type="text/javascript">
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
Body Section Code
<a href="javascript:bookmarksite('my blog', '')">Bookmark this!</a>
Javascript Tutorials

More Bookmarking Script Examples/ Tutorials?