View Single Post
Old 09-05-2010, 04:12 PM   PM User | #4
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,032
Thanks: 197
Thanked 2,410 Times in 2,388 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
Sorry, I have no experience of Chrome.

Try placing this in a function

Code:
function useKey() {
var a = "" + (window.getSelection() ? document.getSelection() : document.selection.createRange().text); 
if (a!=null)window.open("http://www.google.com/search?q=\"" + escape(a)+ "\""); 
}
and call the function when the selected key is pressed (see code given above in Post#2).

Last edited by Philip M; 09-05-2010 at 04:17 PM..
Philip M is offline   Reply With Quote