Penguin
6/24/2006, 02:21 PM
I have a button where it will search Google for whatever term I have highlighted.
Here it is:
javascript:Qr=document.selection.createRange().tex t;if(!Qr){void(Qr=prompt('What do you want to search on google?',''))}if(Qr)location.href='http://www.google.com/search?hl=en&q='+escape(Qr)+' '
The part that sucks is that it uses the same window. I want it to open a new window that will show the google search results.
What changes do I need to make to it?
Here it is:
javascript:Qr=document.selection.createRange().tex t;if(!Qr){void(Qr=prompt('What do you want to search on google?',''))}if(Qr)location.href='http://www.google.com/search?hl=en&q='+escape(Qr)+' '
The part that sucks is that it uses the same window. I want it to open a new window that will show the google search results.
What changes do I need to make to it?