Forum Moderators: open

Message Too Old, No Replies

Drop Down Box Query

         

hannah1

3:42 pm on Feb 24, 2005 (gmt 0)

10+ Year Member



Hi I wonder if anyone could help with what is hopefully a straightforward question. I have created a dropdown box. The code used is shown below:

<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?

orion_rus

3:51 pm on Feb 24, 2005 (gmt 0)

10+ Year Member



If code is identical it's may be a bug of browser. But the code is ok. In mozilla 1.7 it works perfectly always.