| The following select is a drop-down menu similar to the one
getElementById to find out which item in the list is selected. After the user has selected
an item and presses the "Go to Article" button, the following code is in the
"onClick" event:<input TYPE="BUTTON" NAME="B2" VALUE="Go to Article ..."
The "onClick" calls a function named "goToPage763", and uses the
ID of the select. Note that the ID is in quotes. The relevant HTML for the select is:
When the button is clicked, the function,
"goToPage763('idSelect')" is called. The following is the function:
mySelect.options[theIndx].value != "none"
location = mySelect.options[theIndx].value)
The significant difference between this code and the previous
code is the line above in blue. We identify the select by using its id.