[thelist] JavaScript not compatable in Netscape

Casey Crookston casey at thecrookstons.com
Fri Apr 16 08:23:47 CDT 2004

I could REALLY use a hand with this one.  This simple little Javascript
won't work in Netscape.  Here's the complete form (with VBScript tags) and

 <Script language="JavaScript">
function goto(form) { var index=form.select.selectedIndex
if (form.select.options[index].value != "0") {

<form name="form1">

  <SELECT NAME="select" ONCHANGE="goto(this.form)" SIZE="1">

        <option value="calc.asp" <% if func = "none" then response.write
"SELECTED"%>>Select a Function</option>

        <option value="calc.asp?func=cr" <% if func = "cr" then
response.write "SELECTED" %>>Conversion Rate</option>

        <option value="calc.asp?func=cpv" <% if func = "cpv" then
response.write "SELECTED" %>>Cost Per Visitor</option>

        <option value="calc.asp?func=cpc" <% if func = "cpc" then
response.write "SELECTED" %>>Cost Per Customer Acquired</option>

        <option value="calc.asp?func=ppc" <% if func = "ppc" then
response.write "SELECTED" %>>Pay Per Click Goal</option>



Again, the problem is that the JavaScript function 'goto( )' is not working
in Netscape.

I should mention... this seemed to work the first time the user selects an
item from the dropdown list.  But it ONLY works the first time.

Check it out:




More information about the thelist mailing list