Search tweak help

P

'perch

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<frames.length;i++){q=frames.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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top