concept bookmarklet in category ios

appears as: bookmarklets, bookmarklet, bookmarklets
iPhone in Action: Introduction to Web and SDK Development

This is an excerpt from Manning's book iPhone in Action: Introduction to Web and SDK Development.

Of these two programs, the first is intended specifically for JavaScript debugging, while the second—which we’ll meet as part of a larger discussion of bookmarklets shortly—supports more general HTML debugging. We will not be discussing a third tool, Firebug on the iPhone, because it stopped working when iPhone OS 2.0 was released, with no indication that it’s going to be repaired in the future.

The word bookmarklet comes from combining the words bookmark and applet. They’re little bits of JavaScript code that are encoded as URLs. Thus, when you see a mini-application that you like, you save it as a bookmark, and then you can activate it at any time just by selecting the appropriate link from your bookmark list.

For the iPhone, bookmarklets can give you all the client-side functionality that you want but don’t have access to: things like viewing source, and using client-side tools like those found in Firefox and Safari.