The Form object represents an HTML property created by the 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.
Form methods and properties.
Property/MethodDescription
actionHTML ACTION attribute of Form object
elementsArray reflecting elements within form
elements.lengthLength of elements array
encodingHTML ENCTYPE attribute of Form object
handleEvent()Handles specific event
lengthNumber of elements within form
methodHTML METHOD attribute of Form object
nameHTML NAME attribute of Form object
onResetEvent handler for Reset button
onSubmitEvent handler for Submit button
reset()Resets form elements
submit()Submit for data
targetHTML TARGET attribute of Form object
Using the name property to access a form object