Pellowe, Code Handout, page 4
Code from the pull-down menu page
There are three important parts, shown in 1.2.1 - 1.2.3 below.
1.2.1 This goes in your <head> section:
<!-- Hide from old browsers
1.2.2 This goes right under your <body> statement:
<FORM METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
1.2.3 This is the pull-down menu code which appears later in your page:
<OPTION VALUE="ch1p21no.html">Choose a video:</OPTION>
<OPTION VALUE="ch1p22bu.html">A Bug's Life</OPTION>
<OPTION VALUE="ch1p22ki.html">Kiki's Delivery Service</OPTION>
<INPUT TYPE="Button" VALUE="Go" onClick="Go_Dest(this.form)">
The "value" of each option is the URL of the web page you'll go to if you select that option and click the "Go" button. Note that the first option ("Choose a video") has a value, too. Here's why: If a student simply clicks blindly on this menu's "Go" button without making a selection, that student will arrive at a page which explains the error (ch1p21no.html). See "Prevent student confusion and blind clicking" on the next page (section 1.3.2) for further explanation.