Navigation drop down form

This part goes in the HEAD of the document:


<script LANGUAGE="JavaScript">
function formHandler(){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;}
</script>

This part goes in the BODY.


<form name="form">
<p><select NAME="site" SIZE="1" onChange="formHandler()">
<option>Navigate... </option>
<option value="index.html">Home Page</option>
<option value="page1.php">Page 1</option>
<option value="members/login.php">Members Area</option>
<option value="faq/">F.A.Q.</option>
<option value="cgi-bin/search.pl">Search</option>
<option value="cgi-bin/search.pl?Term=Widgets">Find Widgets</option>
</select></p>
</form>

Back