Cross Browser Add to Favorites Javascript

by Hiroshi on 09-07-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, "")
}
</script>
Body Section Code
<a href="javascript:bookmarksite('my blog', 'http://www.techmynd.com')">Bookmark this!</a>
Javascript Tutorials

More Bookmarking Script Examples/ Tutorials?

Related Posts

Share it!
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • email
  • LinkedIn
  • Live
  • MySpace
  • Netvibes
  • PDF
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz
  • Add to favorites
  • Share/Bookmark

Post a Comment

Comment will appear here after approval, Thanks for patience