Bookmarklets are implemented using a long URL that begins with "javascript:
".
The URL's JavaScript typically inserts the bookmarklet's script into the current page,
thus giving the bookmarklet the ability to do its work.
Installing a bookmarklet on a desktop browser is pretty easy: just drag it to the bookmarks toolbar or right-click it and add it to your favorites. But these techniques don't work in most mobile browsers. It's possible to install bookmarklets on mobile devices, but it can be tricky. The technique I use (recommended by Maximiliano Firtman) involves bookmarking a URL with an embedded anchor and then editing that URL.
Here are step-by-step pictures of installing a bookmarklet this way on the iPhone. I look specifically at installing the Mobile Perf bookmarklet, but this technique should work for all bookmarklets and all mobile browsers. (On my Android Nexus S I had to replace all escaped space ("%20") characters with an actual space (" ") character.)
#javascript:(function...
" to the end of the URL in your browser.
javascript:(function
".
Hit Done three times and you should be back at the browser.
Bookmarklets might seem clunky compared to desktop browser tools, but they are a way to gain visibility into mobile browsers today. There's still work to be done to manage the small screen real estate, but as more bookmarklet development focuses on mobile these issues will be addressed.