Buttons
-
Three types:
-
type="SUBMIT" - submits the contents of the form to the ACTION
URL.
-
type="RESET" - resets (blanks out) the form. You can use
the onReset event handler to restore defaults, if necessary.
-
type="BUTTON" - generic button, good for use with JavaScript.
-
<INPUT TYPE="BUTTON" NAME="BUTTON1" VALUE="Click Me!">
-
Attributes:
-
NAME - the internal name of the button; use with JavaScript to
refer to this button.
-
VALUE - the text that appears on the button.
-
Event Handling:
-
onSubmit and onReset in the <FORM> tag for
SUBMIT and RESET buttons, respectively.
-
onClick in the button tag for generic buttons.
Example: textfields.html
Check Boxes
Home
Internet II: Day 4