HTML Drop Down Menu Tutorial
A drop down menu is a popular way to cram a lot of links into a small space. A drop down menu (also simply called a "dropdown") is a
(Form not live)
Now we create a
<FORM ACTION="/cgi-bin/redirect.pl" METHOD=POST onSubmit="return dropdown(this.gourl)"> <SELECT NAME="gourl"> <OPTION VALUE="">Choose a Destination...</OPTION> <OPTION VALUE="http://www.google.com">Google.com</OPTION> <OPTION VALUE="http://www.bing.com">Bing.com</OPTION> </SELECT> <INPUT TYPE=SUBMIT VALUE="Go"> </FORM>
indicates that the URL is
notice that the first option, the one that reads "Choose a Destination...", has an empty string as its value. That empty string tells the script that the user didn't really choose a URL and it shouldn't do anything.
This technique also allows you to target the list at another frame. We'll look at that next.