[thelist] Need a little help with JS scripting (whois)

Michael Galvin mgalvin at sourcevisualthinking.ie
Wed Mar 6 05:38:01 CST 2002


Thanks, Ben, worked like a charm (apart from the missing quotes at the start
of the WhoisURL assignment).

--
Michael Galvin
source visual thinking

> From: Ben Henick <persist1 at io.com>
> Reply-To: thelist at lists.evolt.org
> Date: Wed, 6 Mar 2002 04:42:32 -0600 (CST)
> To: theList <thelist at lists.evolt.org>
> Subject: Re: [thelist] Need a little help with JS scripting (whois)
>
> On Wed, 6 Mar 2002, Michael Galvin wrote:
>
>> I'd like to add an icon to my IE toolbar that when clicked, would request a
>> domain address and give me the whois record
>>
>> I know I need to run the whois cgi script located at whois.net (or similiar)
>> but I have no idea how to request a domain string and then run the script on
>> that all in 1 JS command.  Any help?
>
> Hm.  This has to go into one line preceded by 'javascript:' and here's how
> I would do it:
>
> x=window.prompt("Domain name to check","");
> if(x != ""){WhoisURL=(http://www.betterwhois.com/bwhois.cgi?"+x);
> window.top.location=WhoisURL;}
>
> This uses betterwhois.com instead of NetSol, for a long list of reasons.
>
> The hard part is getting it into your Links menu; the best approach I've
> found is to create a Links bookmark for about:blank and edit the name and
> URL after you've created it.
>
>
> --
> Ben Henick
> Web Author At-Large              Managing Editor
> http://www.io.com/persist1/      http://www.digital-web.com/
> persist1 at io.com                  bmh at digital-web.com
> --
> "Are you pondering what I'm pondering, Pinky?"
> "I think so, Brain, but... (snort) no, no, it's too stupid."
> "We will disguise ourselves as a cow."
> "Oh!" (giggles) "That was it exactly!"
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>




More information about the thelist mailing list