Form
JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax
Core client-side JavaScript object.
Description
The Form object represents an HTML property created by the <form> tag. The Form object can be used to access all the properties of the specified form. Forms can be referenced by either the forms array or directly by name. Table 7.27 shows the different Form methods and properties.
Property/Method | Description |
---|---|
action | HTML ACTION attribute of Form object |
elements | Array reflecting elements within form |
elements.length | Length of elements array |
encoding | HTML ENCTYPE attribute of Form object |
handleEvent() | Handles specific event |
length | Number of elements within form |
method ... |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.