Lasted edited by Andrew Munsey, updated on June 14, 2016 at 9:11 pm.

  • One error has been found on this page. Administrator will correct this soon.
  • This page has been imported from the old peswiki website. This message will be removed once updated.

A Bookmarklet is a small computer program written in JavaScript that can be stored as a URL within a bookmark in most web browsers, or within hyperlinks on a web page. The term "favelet" was developed by IE user to reflect and mirror the terminology of that browser, because Internet Explorer uses the term favorites instead of bookmarks.


Steve Kangas of coined the term "bookmarklet," which he started to create based on an idea suggested in the Netscape JavaScript Guide. 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 (e.g., change the font size, background color, etc.).

Extract data from a web page (e.g., 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.

Brendan Eich, who developed JavaScript at Netscape, gave this account of his invention of the javascript: URL (which makes bookmarklets possible): javascript: URL (which makes bookmarklets possible):

{{quotation|They were a deliberate feature in this sense: I invented the javascript: URL along with JavaScript in 1995, and intended that javascript: URLs could be used as any other kind of URL, including being bookmark-able.

In particular, I made it possible to generate a new document by loading, e.g. javascript:'hello, world', but also (key for bookmarklets) to run arbitrary script against the DOM of the current document, e.g. javascript:alert(document.links[0].href). The difference is that the latter kind of URL uses an expression that evaluates to the undefined type in JS. I added the void operator to JS before Netscape 2 shipped to make it easy to discard any non-undefined value in a javascript: URL.|Brendan Eich}}

PESWiki Search Code

The following lines, when joined together to form a bookmarklet, will search PESWiki for the string currently highlighted in the browser, or else, if nothing is selected, it will display a dialog box form field in which to enter a search string. This bookmarklet works in Mozilla Firefox and Konqueror (Minitools):

: javascript:(function(){q=document.getSelection()if(!q)q=prompt('PESWiki:') if(q)location.href=''+escape(q)})()

This version works in Apple Computer's Safari web browser:

: javascript:void(q=prompt(PESWiki:',getSelection())) if(q)void(location.href=''+escape(q))

This version works in Internet Explorer:

: javascript:(function(){q=document.selection.createRange().textif(!q)q=prompt('PESWiki:','') if(q)location.href=''+escape(q)})()

To install the previous bookmarklet in Internet Explorer, follow these steps:

# Make sure the Links toolbar is visible (ensure View/Toolbars/Links is checked).

# In the Favorites menu, select Add to Favorties...

# Type "PESWiki" in the Name field.

# In the Create In box, select the Links folder. Click OK.

# Copy the text of the bookmarklet, above.

# Right-click on the new "PESWiki" link in the Links bar, and select Properties.

# Paste the bookmarklet text into the URL field. Click OK.

Other PESWiki Codes

The following bookmarklets will give yoy simple tools that extend the surf and search capabilities of Netscape and Explorer web browsers at PESWik. The Bookmarklets are "free". Bookmarklets wlll work on all platforms (Windows, Macintosh, Unix,...) and you do not have have to download or install software to use Bookmarklets. The text to copy wiill appear as follows:

: javascript code

More Info About ...

"More Info About" is a available from Instead of clicking on links, you can select some text from the webpage and quickly feed it into all of the search engines below no copying or pasting.

: javascript:Q=document.selection.createRange().textif(!Q){void(Q=prompt('No text selected on page.\n\nKeywords...?',''))}if(Q)location.href=''+escape(Q)

Search bookmarklets

The search bookmarklets below will allow you to search PESWiki content, instead of clicking on links, select some text from the webpage and quickly feed it into all of the search engines below no copying or pasting.

:Search Google...


: Search WebCrawler...

: javascript:Qr=document.selection.createRange().textif(!Qr){void(Qr=prompt('PESWiki',''))}if(Qr)location.href=''

: Search Alta Vista...

: javascript:Qr=document.selection.createRange().textif(!Qr){void(Qr=prompt('PESWiki ...',''))}if(Qr)location.href=''+escape(Qr)+'&aqp=&aqo=&aqn=&aqb=&kgs=1&kls=0&dt=tmperiod&d2=0&dfr%5Bd%5D=1&dfr%5Bm%5D=1&dfr%5By%5D=1980&dto%5Bd%5D=31&dto%5Bm%5D=7&dto%5By%5D=2006&filetype=&rc=dmn&'

: Search Lycos...

: javascript:Qr=document.selection.createRange().textif(!Qr){void(Qr=prompt('PESWiki:',''))}if(Qr)location.href=''+escape(Qr)+''

: Smart Browsing...

: javascript:Qr=document.selection.createRange().textif(!Qr){void(Qr=prompt('PESWiki:',''))}if(Qr)location.href=''+escape(Qr)+''

External resources

There was an error working with the wiki: Code[1]

Steve Kangas, Bookmarklets - free tools for power surfing Favlet Suite: by S.G. Chipman. Favlets for the web designer including Mouseover DOM Inspector, Color List, and HTML Attribute Viewer.

Jesse's Bookmarklets Site: by Jesse Ruderman. Contains various bookmarklets for different categories.

Favelets (by Tantek Çelik): Bookmarklets for a variety of, developer oriented, uses.

Subsimple Bookmarklets: Bookmarklets for navigation, searches, and removing annoyances, among other things. Explains how to write your own bookmarklets and has a Bookmarklet Builder for easy editing.

Philburns Bookmarklets: Contains bookmarklets on categories like Navigation, Searching, Checking Code Validity etc. Targeted at the Opera browser.

Samrod's Functional Bookmarks: Bookmarklets for all kinds of search engines, online services, and some powerful web development tools.

milov: Bookmarklets for web designers. A collection of useful bookmarklets, presented as a blog, with each bookmarklet as en entry allowing user comments.

Accessibility-checking favelets: Bookmarklets for web designers.

Andy Budd: Bookmarklets targeted at the Safari browser.

Svenska: A few search bookmarklets in Swedish.

Bookmarklets @ Wisdombay: A place which posts bookmarklets on a daily basis.

Blummy: Kind-of bookmarklet manager, integrates with a page and displays several bookmarklets.

Bookmarklet Generator: Automatically create "search" bookmarklets for any website with a search feature

The LibraryLookup Project: Automatically create a bookmarklet to look up books in your local library that you find on a bookseller's site (e.g.

Bookmarklet compilation: A growing reference list of existing bookmarklets and tutorials on how to build them.