I get the error "d is not a function".  I fixed this by removing the '()'
after the 

        window.top.location.href = d(); 

becomes
        window.top.location.href = d; 

Brendan Johnston
TeamND


        -----Original Message-----
        From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
        Sent:   Thursday, June 17, 1999 2:50 PM
        To:     [EMAIL PROTECTED]
        Subject:        [ND] JavaScript in ND Page

        Hello,

        This script works great in a non-ND page, but in an ND page I get a
script 
        error popup box.  Any suggestions?

        Thanks!

        Jill
        <SCRIPT language="JavaScript"><!-- 
        function GoLink(s) 
        { var d = s.options[s.selectedIndex].value; 
        window.top.location.href = d(); 
        s.selectedIndex=0; 
        } 
        //--> 
        </SCRIPT> 

        <SELECT onChange="GoLink(this);"> 
        <OPTION VALUE="http://www.microsoft.com">Microsoft</OPTION> 
        <OPTION VALUE="http://www.altavista.com">Altavista</OPTION> 
        </SELECT>
        
_________________________________________________________________________

        For help in using, subscribing, and unsubscribing to the discussion
        forums, please go to:
http://www.netdynamics.com/support/visitdevfor.html

        For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to