Bookmarklets can be saved and used like normal web page bookmarks. Therefore, they are simple "one-click" tools that can add substantial functionality to the browser. For example, they can
- modify the way a web page is displayed within the browser (i.e., change the font size, background color, etc.).
- extract data from a web page (i.e., hyperlinks, images, text, etc.).
- jump directly to a search engine, with the search term(s) input either from a new dialog box, or from a selection already made on a web page.
- submit the page to a validation service.
For example, the following bookmarklet will search Wikipedia for the string currently highlighted in the browser. If nothing is selected, it will display a dialog box form field in which to enter a search string.
javascript:Qr=document.getSelection();if(!Qr){void(Qr=prompt('Keywords...',''))};if(Qr)location.href='http://en.wikipedia.org/w/wiki.phtml?search='+escape(Qr)
External links