You are here: irt.org | FAQ | JavaScript | Link | Q203 [ previous next ]
If the anchors are called flyfishing, flytying and saltwater then try this:
<script language="JavaScript"><!--
function go() {
location.href = '#' + document.myform.mylist.options[document.myform.mylist.selectedIndex].value;
}
//--></script>
<form name="myform">
<select name="mylist">
<option value="flyfishing">Flyfishing
<option value="flytying">Fly Tying
<option value="saltwater">Saltwater
</select>
<input type="button" value="Submit Query" onClick="go()">
</form>