JavaScript Jump Menu

Submitted by:Andery Smith

Date added:06 March, 2012

Category:JavaScript

An example code for JavaScript Jump Menu

Tags: jump menu

Code Snippet:

<script language="javascript" type="text/javascript" >
<!-- hide
function jumpto(x){

if (document.form1.jumpmenu.value != "null") {
document.location.href = x
}
}

// end hide -->
</script>
<form name="form1">
<select name="jumpmenu" onChange="jumpto(document.form1.jumpmenu.options[document.form1.jumpmenu.options.selectedIndex].value)">
<option>Jump to...</option>
<option value=http://www.xentrik.net/>Xentrik Homepage</option>
<option value=http://www.xentrik.net/coding.php>Xentrik Coding</option>
<option value=http://www.xentrik.net/snippets/>Xentrik Snippets</option>
</select>
</form>
 
 

Comments