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


Click here to return to the 'scriptlet that uses highlighted text...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
scriptlet that uses highlighted text...
Authored by: steven_kehlet on Sep 13, '02 12:14:07AM
Stole this from Galeon from my Linux days... bookmark this link, and stick it in your bookmark toolbar. Highlight some text in your doc, then click the bookmark, and google will search for the highlighted term. Looks like my anti-popup stuff is preventing window.open() from working inside a bookmark, so I have document.location = ... here. You might try window.open() to open in a new window instead of the current doc. Search Google Here's the javascript text: javascript:Q=document.getSelection();if(!Q){void(Q=prompt('No text selected on page.'+F+'nnKeywords...?',''))};if(Q)void(document.location = 'http://google.com/search?q='+escape(Q))

[ Reply to This | # ]
scriptlet that uses highlighted text...
Authored by: a_wylie on Nov 18, '02 08:27:55AM

This is a great shortcut, especially as I can't seem to get the pop-up sheet to work or the highlighted text with keyboard shortcut tip... is there any way to get the results to open up ina new tab?



[ Reply to This | # ]