Re: [NTLK] Google / UNNA

From: Grant [Sparkle] Hutchinson (grant_at_splorp.com)
Date: Thu Sep 12 2002 - 10:18:44 PDT


In a previous message, Eric L. Strobel typed vigorously:

>Figures... Those wacky monopolies... Have to wonder, though, if someone
>proficient in JavaScript couldn't possibly write a bookmarklet to search the
>site being viewed.

Try this:

javascript:void(q=prompt('Enter%20text%20to%20search%20for:',''));if(q){hn=
document.location.hostname.split(".");l=hn[1]+"."+hn[2];void(location.href=
'http://www.google.com/search?client=googlet&qscape(q)+'&as_sitesearch=
'+escape(l));}

Enjoy.

g.

......................................................................

Grant Hutchinson Interface Considerations & Toys

Live video served fresh since 1996. http://www.splorp.com/cam/
Now fortified with daily ramblings. http://www.splorp.com/blog/
Newton. It's the Palm with a brain. http://www.splorp.com/newton/
Online community web site handyman. http://www.newted.net/

-- 
Read the List FAQ/Etiquette: http://www.newtontalk.net/faq.html
Read the Newton FAQ: http://www.chuma.org/newton/faq/
This is the NewtonTalk mailing list - http://www.newtontalk.net/


This archive was generated by hypermail 2.1.5 : Mon May 26 2003 - 12:59:21 PDT