I am trying to link to a site based on a selection made in a pull down menu. The script is fundamentally simple but for some reason it will not execute.
I am not sure if the error is with passing the data to the function or if the function is even working properly... any help would be appreciated.
Code:
<html>
<head>
</head>
<body>
<script type='text/javascript'
function Navigator(nav.selectURL.value)
{
document.location.href=document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value
}
</script>
<form>
Select A Report:<br>
<FORM NAME="nav" id="nav"><DIV>
<SELECT NAME="SelectURL" onChange="Navigator(nav.selectURL.value)">
<OPTION VALUE="index.htm"
SELECTED>Please select an item:
<OPTION VALUE="websiteiwanttolinksurl">
Fire Reports
</SELECT><DIV>
</FORM>
</body>
</html>
I am not sure if the error is with passing the data to the function or if the function is even working properly... any help would be appreciated.