this brief article shows how to add javascript code to your bookmarks - or favorites - thereby allowing you to do some fancy linking where no links exist.
for example, if a web page contains the word ennui and you want a definition for it, you could hunt through your bookmarks for websters dictionary, go there, type the word in, go back to your original page, check the spelling of the word, find your way back to the dictionary again and then type it in correctly. instead, this tiny program allows you to select a word and use a bookmark to search the dictionary for it. a click to your browsers "back" button and youre back again (see listing 1).
to put this code into a netscape bookmark, first create a new bookmark in your personal toolbar folder (or anywhere else). then edit bookmarks and change the properties of your new bookmark. change the name to "webster for" and the location (url) to that javascript code, starting with the javascript: tag instead of the usual http:// tag. now double-click on a word from any document and you can look it up in the dictionary with one click.
this works because of a new feature added to netscape navigator 4.0: the abili... 下一页