PDA

View Full Version : Anybody know javascript?



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?

Penguin
6/24/2006, 09:48 PM
Bumpity bump

Blue
6/25/2006, 01:32 AM
Bump.

Penguin
6/25/2006, 01:33 AM
Thanks, dude.

Blue
6/25/2006, 01:34 AM
Bumpy.

StoopTroup
6/25/2006, 02:12 AM
Nope...

But if you hum a few bars I'll see if it's got a video on YouTube.

BajaOklahoma
6/25/2006, 04:06 AM
I sent it to one of my sons who might know javascript.
No clue if or when he is working Sunday, so I don't know when he will reply.

Penguin
6/27/2006, 09:00 PM
Bump

BajaOklahoma
6/27/2006, 09:42 PM
He hasn't repsonded yet. :( He's at work right now. I will send it again.