Monday, May 15, 2006

Add Bookmark via Javascript

Add Bookmark Javascript Example By Eddie Traversa

The JavaScript needed to add a bookmark in IE is pretty trivial. However, I had yet to see a solution that works for both IE and Firefox. The above link points to one.

Update: This turned out to be too good to be true. The attached code creates a bookmark. However, in Firefox, the bookmark loads in the sidebar. The result is a bookmark that isn't really useable.

On a good note, the effect may very well be useful for other things, so it's probably still worth playing with.

Thanks to Beamer for playing with, and reporting on, this code.

No comments:

Post a Comment