Select and Go

This script will let the user select a destination from a drop down menu, and then go to that address by clicking on a button.

<html>
<head>
<title>Select and Go</title>
<script language="JavaScript">
<!--
function openDir(form) {
window.location =(form.dir.options[form.dir.selected Index].value);
}
// -->
</script>
</head>
<body>
<form name="myform">
<div align="center"><p><select name="dir" size="1">
<option value="">Choose a Site</option>
<option value="http://www.yahoo.com/">Yahoo!
<option value="http://www.excite.com/">Excite
</select><input type="button" name="button" value="Go!" onclick="openDir(this.form);"></p>
</div>
</form>
etc...

Notes:

  1. Change the URLs in the script to your desired addresses. You can have as many selections as you want by simply copying the code.
  2. To ensure the code is copied correctly, please click here.

See it in action.