Navigating with a SELECT Object
<HTML> <HEAD> <TITLE>Select Navigation</TITLE> <SCRIPT LANGUAGE="JavaScript"> function goThere() { var list = document.forms[0].urlList; location = list.options[list.selectedIndex].value; } </SCRIPT> </HEAD> <BODY> <FORM> Choose a place to go: <SELECT NAME="urlList" onChange="goThere()"> <OPTION SELECTED VALUE="http://www.java2s.com">Java2s Home Page <OPTION VALUE="http://www.google.com/">Google </select> </FORM> </BODY> </HTML>