How to Write a Bookmarklet tutorial

/*--- holy mAcar00ns!! --- */

This is a pretty good introduction to writing a bookmarklet.

Juhu Kinners � How to Write a Bookmarklet: "What are Bookmarklets?

All web browser support the special “javascript” URL protocol. If you type “javascript:” followed by JavaScript code into a browser’s location bar, the JavaScript will be evaluated in the context of the active web page (host page). Such strings are handled by the browsers just like any other URL. You can set them as “href” of a link tag and of coarse bookmark them. To get a feeling of this try typing this in the URL bar:

javascript:alert(document.getElementsByTagName('title')[0].innerHTML);
This will alert the document’s title. The bookmarklet’s JavaScript has full access to the document’s DOM and is run in the same JavaScript namespace as all other JavaScript in the host page."

all your bases ar--

ping moi pleeez


About this entry

pacman is coming

nuck nuck

e belong to us!