Intermediate Web Publishing

JavaScript and Forms

Actions on events attached to form elements -- Go to:

<FORM>
<select onchange="window.location=
      this.options[selectedIndex].value">
  <option selected value="#">Select a destination
  <option value="http://www.uoregon.edu">UO Home Page
  <option value="index.html">Workshop index
  <option value="http://libweb.uoregon.edu/it/eval.html">Eval form
</select>    
</FORM>

Exercise: Create a "goto" HTML form with JavaScript code similar to the above, but use your own option values.


[up] nextMore forms