[Javascript] WHY would a drop down box redirection scirpt

staeger staeger at arch.ethz.ch
Wed Sep 26 01:42:07 CDT 2001



"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 --------------
A non-text attachment was scrubbed...
Name: staeger.vcf
Type: text/x-vcard
Size: 431 bytes
Desc: Card for staeger
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010926/3372948e/attachment.vcf>


More information about the Javascript mailing list