Jump to content

Adding Bookmark Script?


DeathWalker

Recommended Posts

There thousands of scripts to bookmark a page.I use:function setBookmark(url,str) { if(str=='')str=url; if (document.all) window.external.AddFavorite(url,str); else alert('Press CTRL-D or CTRL-T to add a bookmark to:\r\n"'+url+'".'); }Rarely, I don't think it's used very much. The user can bookmark your page at any time without any links, plus he probably wants to store the link in a certain category of his bookmarks.

Link to comment
Share on other sites

This is even another, but this one doesn't check if browser supports this function.

function GoBookmark(){ window.external.AddFavorite(location.href,document.title); }
Anyway, adding to favorites should be the user's responsibility, providing a link is only extra confort, not really necessary. :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...