What's a Bookmarklet?

Question: What's a bookmarklet?

Answer: Bookmarklet is a tiny JavaScript program contained entirely in a hyperlink's URL. (JavaScript URLs look like this: <a href="javascript:the code goes here">.) Most browsers allow you to bookmark these JavaScript URLs, just as you bookmark any other hyperlinks. The word bookmarklet was coined by Steve Kangas, who also developed many useful bookmarklets himself. Below is a simple example: the go-back bookmarklet.

Go-Back Bookmarklet

This bookmarklet is an equivalent of the browser's Back button. To preview the bookmarklet, click on the above title. To add it to your bookmarks, right-click on the title and choose Add bookmark or Add to Favorites (depending on your browser).

Copyright © 1999-2011, JavaScripter.net.