Example code from Dr. Clue's Javascript tutorial,
http://www.drclue.net/F1.cgi/HTML/JAVA/JAVA.html
Using Listboxes for Web Page Navigation
Select an option from the listbox below. You will
navigate to a new web page.
If nothing happens, select the other choice. In this
example, you don't get the new document unless the choice
is a change from the previous choice.
Source Code
<form name="aForm">
<select name="GO" onchange=
"document.location.href=document.aForm.GO.options[document.aForm.GO.selectedIndex].value">
<option value="example07fileA.html">
File A information
</option>
<option value="example07fileB.html">
File B information
</option>
</select>
</form>
|