Core JavaScript

Intermediate JavaScript

JavaScript Reference

JavaScript Drop Down Menu Example Code Tutorial




Example-Code:

<html>
<body>
<script language="javascript" type="text/javascript" >
function jump_to(x){

if (document.form_one.jump_menu.value != "null") {
	document.location.href = x
	}
}
</script>
<form name="form_one">
<select name="jump_menu" onChange="jump_to(document.form_one.jump_menu.
options[document.form_one.jump_menu.options.selectedIndex].value)">
  <option>Jump To...</option>
  <option value=http://www.way2tutorial.com>Homepage</option>
  <option value=http://www.way2tutorial.com/html/html_tutorial.php>HTML
  </option>
  <option value=http://www.way2tutorial.com/css/css_tutorial.php>CSS
  </option>
  <option value=http://www.way2tutorial.com/javascript/
  javascript_tutorial.php>JavaScript</option>
  <option value=http://www.way2tutorial.com/webhosting/
  webhosting_tutorial.php>Web Hosting</option>
</select>
</form>
</body>
</html>
Online Try This Code Your Self....   »

Example-Results: