mkalishoek
12-03-2002, 12:53 PM
hi!
i am making a website wich must contains a dropdown menu.
im using this:
but now it want to remove the GO! button.
I tried to delete the last part 9<input type="button" name="test" value="Go!"
onClick="gone()">) but when i did that, my site loaded much slower :eek:
how can i remove that GO! button without making it slower?
and how can i make it, that the link you selected in the menu, opens in a new window?
<form name="jumpy">
<p><select name="example" size="1" onChange="gone()">
<option value="http://www.cnet.com">Cnet</option>
<option value="http://www.cnn.com">CNN</option>
<option value="http://www.geocities.com">Geocities</option>
</select>
<script language="javascript">
<!--
function gone()
{
location=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
}
//-->
</script>
<input type="button" name="test" value="Go!"
onClick="gone()">
</p>
</form>
greetings, michiel
i am making a website wich must contains a dropdown menu.
im using this:
but now it want to remove the GO! button.
I tried to delete the last part 9<input type="button" name="test" value="Go!"
onClick="gone()">) but when i did that, my site loaded much slower :eek:
how can i remove that GO! button without making it slower?
and how can i make it, that the link you selected in the menu, opens in a new window?
<form name="jumpy">
<p><select name="example" size="1" onChange="gone()">
<option value="http://www.cnet.com">Cnet</option>
<option value="http://www.cnn.com">CNN</option>
<option value="http://www.geocities.com">Geocities</option>
</select>
<script language="javascript">
<!--
function gone()
{
location=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
}
//-->
</script>
<input type="button" name="test" value="Go!"
onClick="gone()">
</p>
</form>
greetings, michiel