XHTML form example
Below is a simple quiz, please fill it in.
Explanations:
- In the head, some JavaScript code that defines a "give_feedback" function is loaded
- This give_feedback function is triggered when the user
presses the submit button because in the form tag we defined the
attribute
onsubmit="give_feedback()
- Understanding how to deal with HTML forms is not trivial,
i.e. you have to learn about DOM and be able to understand texts
like the Gecko HTML
Form Interface documentation. However, for starters, you
just may try to adapt code to your need.
- For explanation of the JS code, see the 2-xhtml-radio-buttons.js
file.
Made by Daniel K. Schneider, TECFA. This is freeware.
Last modified: Mon Mar 31 19:22:02 CEST 2008