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=document.getSelection();for(i=0;i<fra mes.length;i++){q=frames[i].document.getSelection();if(q)break;}if(!q)void(q= prompt('Keywords:',''));if(q)location.href='http://www.google.com/search?client=googlet&q='+escape(q)