Te ee
¢ Form and Event
Handling
CHAPTER 3
Syllabus | eee
| 3.1 Building blocks of a Form, properties and methods of form, button, |
| text, text area, checkbox, radio button, select element |
3.2 Form events — mouse event, key events |
| 3.3 Form objects and elements |
| 3.4 Changing attribute value dynamically
3.5 Changing option list dynamically
3.6 Evaluating checkbox selection
3.7 Changing a label dynamically
3.8 Manipulating form elements
3.9 Intrinsic JavaScript functions, disabling elements, read only
elements.
1 3.1 BUILDING BLOCKS OF A FORM, PROPERTIES
AND METHODS OF FORM, BUTTON, TEXT, TEXT
AREA, CHECKBOX, RADIO BUTTON, SELECT
ELEMENT
% 3.1.1 Building Blocks of a Form
Form object represents an HTML form.4
(Form and Event Handling) Pano (3,
ing Lange
© The
The
Element
* The HTML
element is the most used form element.
* An
element can be displayed in many ways, depending on the
type attribute.
| ‘Type ae Description
Displays a single-line text input field
Displays a radio button (for selecting one of
many choices)
+t
| Displays a checkbox (for selecting zero or |
i more of many choices)
Displays a submit button (for submitting the
form)
— —
Displays a clickable button
The