PHP gevorderde |
|
Ik heb wel een stukje code voor je zonder 'go' knop, kijk maar wat je er mee kan
<script type="text/javascript">
function jumpMenu(targ, selObj, restore) {
eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");
if (restore) {
selObj.selectedIndex = 0;
}
}
</script>
<form name="form1" action="">
<select name="type" id="type" onchange="jumpMenu('parent', this, 0)">
<option value = "chapt1.htm">Type1</option>
<option value = "chapt2.htm">Type2</option>
</select>
</form>
<script type="text/javascript"> function jumpMenu(targ, selObj, restore) { eval(targ + ".location='" + selObj .options [selObj .selectedIndex ].value + "'"); if (restore) { selObj.selectedIndex = 0; } } </script> <form name="form1" action=""> <select name="type" id="type" onchange="jumpMenu('parent', this, 0)"> <option value = "chapt1.htm">Type1</option> <option value = "chapt2.htm">Type2</option> </select> </form>
|