souldrifter02
08-22-2002, 12:51 PM
Here's the goal- a simple dropdown list that will allow the user to select an item and it will automatically go there.
Here's the problem- I'm having trouble accessing the selected item in Netscape 4.
Here's the REALLY SIMPLE code:
<script language="JavaScript">
function show(app){
app=app;
if (navigator.appName == "Netscape")
link=app.applications.options[app.applications.selectedIndex].value;
else
link=applications.applications.value;
document.location=link;
}
</script>
<form name="applications">
<select name="applications" onChange="show(this);">
<option value="#">Make a Selection</option>
<option value="build_permit.html">Building Permit</option>
<option value="demolition_permit">Demolition Permit</option>
</select>
</form>
It works fine in IE but Netscape 4 pitches a fit.
Thanks in Advance!
Here's the problem- I'm having trouble accessing the selected item in Netscape 4.
Here's the REALLY SIMPLE code:
<script language="JavaScript">
function show(app){
app=app;
if (navigator.appName == "Netscape")
link=app.applications.options[app.applications.selectedIndex].value;
else
link=applications.applications.value;
document.location=link;
}
</script>
<form name="applications">
<select name="applications" onChange="show(this);">
<option value="#">Make a Selection</option>
<option value="build_permit.html">Building Permit</option>
<option value="demolition_permit">Demolition Permit</option>
</select>
</form>
It works fine in IE but Netscape 4 pitches a fit.
Thanks in Advance!