|
Java script for Keypress and the script to work
I need to assign a key in the javascript to actually make the javascript work,.
I have a bookmark in chrome , a javascript , which actually works when clicked on it .,. but how can i edit it so that i can actually make it work on click a key or combination of keys.
i want to declare the key or keycombo in the script itself .,.
the script is for catching the selected text on the webpage and opening a new tab(or window) and doing an exact search search of the selected text using google.com .,.,
So I want it to work it this way .,
select the text
press a key
and it opens a new tab (or window) with an xact search .,.
i want to declare the key or keycombo in the script itself .,.
the script is for catching the selected text on the webpage and opening a new tab(or window) and doing an exact search search of the selected text using google.com .,.,
So I want it to work it this way .,
select the text
press a key
and it opens a new tab (or window) with an xact search .,.
Thanks in advance .,
Nani
Last edited by aravitejareddy; 09-05-2010 at 07:56 AM..
Reason: clarity
|