[Javascript] WHY would a drop down box redirection scirpt

Scott.Wiseman swiseman at remax-cahi.com
Wed Sep 26 12:25:55 CDT 2001


thanks for your vcard 

but can anyone answer me why

-----Original Message-----
From: staeger [mailto:staeger at arch.ethz.ch]
Sent: Tuesday, September 25, 2001 11:42 PM
To: javascript at LaTech.edu
Subject: Re: [Javascript] WHY would a drop down box redirection scirpt




"Scott.Wiseman" wrote:

>
>
> work on one machine in the same browser
> and not work on another
>
> one machine has windows 2k
> the other windows nt.
>
> i.e.
>
> code
>
> <head>
> <title>Admin Main Menu</title>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> <SCRIPT LANGUAGE="JavaScript">
> <!--
> function reDirect(thevar)
>  {
>       window.location.href = thevar.value;
> }
> // -->
> </SCRIPT>

shouldn't it be :

function reDirect(thevar)
 {
      window.location.href = thevar.options[thevar.selectedIndex].value;

}

greets  ben./
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010926/bb764d76/attachment.htm>


More information about the Javascript mailing list