Add to Bookmarks [IE/Win]


/ Published in: JavaScript
Save to your folder(s)

I post,hopefully soon, one cross browser "add to bookmarks". This works ONLY for IE.


Copy this code and paste it in your HTML
  1. //Call from JavaScript:
  2. window.external.AddFavorite(location.href, document.title);
  3.  
  4. //Call from anchor:
  5. <a href="JavaScript:window.external.AddFavorite(location.href, document.title);">Bookmark this site!</a>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.