I'm trying to tweak the Google toolbar search button to do two things;
to include selected text as a string search (i.e. as though I'd entered
the text in ""), and to open a new page for the search results.
The couple of things I tried, failed, and I have hit the end of my
limited coding ability (not to mention patience!). The code is given
below - if anyone can help, I'd be most grateful.
javascript:q=do cument.getSelec tion();for(i=0; i<frames.length ;i++){q=frames[i].document.getSe lection();if(q) break;}if(!q)vo id(q=prompt('Ke ywords:',''));i f(q)location.hr ef='http://www.google.com/search?client=g ooglet&q='+esca pe(q)
to include selected text as a string search (i.e. as though I'd entered
the text in ""), and to open a new page for the search results.
The couple of things I tried, failed, and I have hit the end of my
limited coding ability (not to mention patience!). The code is given
below - if anyone can help, I'd be most grateful.
javascript:q=do cument.getSelec tion();for(i=0; i<frames.length ;i++){q=frames[i].document.getSe lection();if(q) break;}if(!q)vo id(q=prompt('Ke ywords:',''));i f(q)location.hr ef='http://www.google.com/search?client=g ooglet&q='+esca pe(q)
Comment