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


Click here to return to the 'Javascript for favorites toolbar' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Javascript for favorites toolbar
Authored by: Harold on Jun 21, '02 11:17:21AM

I have a javascript bookmarklet in my browser's toolbar which I highly recommend:

Make a new bookmark and name it something like Google selection.
Use the stuff between brackets as the adress (one long line, split to improve readability):
[
javascript:Qr=document.getSelection();
if(!Qr){void(Qr=prompt('Keywords...',''))};
if(Qr)location.href='http://google.com/search?query='+escape(Qr)+'&num=20'
]

When clicked it will put up a prompt in which you can fill in words to use as searchterms in Google or if you've selected some text on the page you're currently viewing it will search for those words.
Works in iCab, Explorer and mozilla et alI

By the way the cript comes from http://www.bookmarklets.com



[ Reply to This | # ]