Create a jump menu using javascript
by Nirmala[ Edit ] 2010-09-10 17:05:57
Create a Jump Menu Using Javascript
Use the below code to create a jump menu
<h1>Jump Menu</h1>
<script type="text/javascript">
function jumpmenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
</script>
<form name="form" id="form">
<select name="jumpMenu" id="jumpMenu" onChange="jumpmenu('parent',this,0)">
<option value="">Select One Choice</option>
<option value="http://www.hiox.com">Hiox</option>
<option value="http://www.hscripts.com">Hscripts</option>
</select>
</form>