Chapter 17: Bookmarklets

Return to Chapter 17

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Converting Values

See it run: Converting Values

Script 17.11

You can create bookmarklets for almost any kind of unit conversion. This JavaScript converts kilometers to miles.