Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A page of useful Safari JavaScript bookmarks' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A page of useful Safari JavaScript bookmarks
Authored by: jonny5 on Jul 14, '03 12:07:57PM
alternatively, you can use this to pop up a dialog box for a word to look up in the dictionary, in case you don't have the word high-lighted in a page:

javascript:x=escape(prompt('Enter%20a%20word','type%20a%20word%20here'));
window.location='http://www.webster.com/cgi-bin/dictionary?book=dictionary&va='+x;


just paste it into a bookmark link, again - no spaces

[ Reply to This | # ]
A little better
Authored by: kleinmatic on Jul 18, '03 11:05:38AM

This is a mix-up of Jonny5's and the other scripts. With this bookmarklet, if a word is highlighted, you'll get the definition for it. If it isn't, you're prompted to enter a word. Huzzah!

[no spaces, I guess, though it works for me either way]

javascript:x=escape(getSelection()); if(!x){x=escape(prompt('Enter%20a%20word','type%20a%20word%20here'));}if(x!='null') {window.location='http://www.webster.com/cgi-bin/dictionary?book=dictionary&va='+x;} else{return;}



[ Reply to This | # ]