Forum Moderators: open
<script language="JavaScript" type="text/javascript">
function changeMe()
{
if(document.form1.site.value!= "")
{
location.href=document.form1.site.value;
}
}
</script>
<form action="" method="post" name="form1" id="form1">
<select name="site" onchange="changeMe();">
<option value="">Select</option>
<option value="page1.html">Page 1</option>
<option value="page2.html">Page 2</option>
<option value="page 3.html">Page 3</option>
</select>
</form>
The first time the dropdown box is used, it works perfectly and a new page is loaded. This new page has identical dropdown box code, however when you then select from the dropdown box on the new page nothing happens. I’ve tried everything I know, any ideas anybody?