• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

Form

Synopsis

document.forms[form_number]
document.forms[form_name]
document.form_name

Properties

The Form object defines properties for each of the attributes of the HTML <form> element, such as action, encoding, method, name, and target. In addition, it defines the following properties:

elements[ ]

A read-only array of Input objects representing the elements that appear in the form. The array can be indexed numerically, or by element name for elements that have HTML name attributes defined.

length

The number of elements in the form. Equivalent to elements.length.

Methods

reset( )

Resets each of the input elements of the form to their default values. Returns nothing. JS 1.1.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint