Click me to test, or drag me to your toolbar

Highlight some of this text, then click the above link,
or click the item that you created by the drag.

When there is text that is  highlighted at the time
of the click, highlighted text becomes the keyword(s)
for the search (without modifiers)

When no text is highlighted at the time of click, a
dialog pops up for specifying keywords.

The personal toolbar on your browser's window (mozilla)
contains bookmarks and menus of bookmarks.  Usually
bookmarks just point to URLs, such as www.google.com.

But bookmarks can also be snippets of javascript.  When
you drag the above link onto the toolbar, you are
creating such a bookmark - often called a bookmarklet.

By putting the snippet in a bookmark, this page becomes
unnecessary.

If you want to see the actual javascript code, use
Ctrl-U. To customize the snippet's behaviour, save this
page as an html file to your hard drive. Edit and resave
the html in a plain text editor (semi-colons are
essential). Open the customized version in a browser.
Test your changes. Then drag the link onto your personal
toolbar (mozilla).  A handy reference for javascript and
other web technologies:  http://www.w3schools.com/js/

HTH

Mike Neubig
neubig@salk.edu
2005-10-21
=========================================================