URL: http://onemorebug.com/bookmarklets
Will originally showed me how easy it is to transform random JS snippets into bookmarklets. Once you set up the HTML, just view it in Firefox, and then drag the link to your bookmarks toolbar.
The basic form is
<a href="javascript:CODE;void 0;">NAME</a>
Where CODE is any arbitrary JavaScript code, and NAME is the name you want the bookmarklet to have once it has been added to the Firefox toolbar.
And of course don't use the javascript: protocol in your HTML pages -- although it's (only!) OK for bookmarklets.
You need to login to post a comment.
