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.
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 | HTML METHOD attribute of Form object |
name | HTML NAME attribute of Form object |
onReset | Event handler for Reset button |
onSubmit | Event handler for Submit button |
reset() | Resets form elements |
submit() | Submit for data |
target | HTML TARGET attribute of Form object |