allow us to prompt a user for input using elements such as radio buttons,
checkboxes and selection lists. Data gathered in this manner can then
be posted to a server for processing. A form is created by enclosing
HTML controls and other elements within <form></form>
tags. A page can contain as many forms as required, but they cannot be
overlapping or nested (the closing </form> tag of a form
must precede the opening tag of any subsequent form).
This property specifies the URL address to which the data gathered by
the form will be submitted. An email address can also be specified
using the 'mailto:email@example.com' syntax.
This property is an array containing an object for each element on the
form. These objects (checkboxes, radio buttons, etc.) are added
to the array in the order that they appear in the document's source code.
This property sets the MIME type that is used to encode the data gathered
by the elements in a form for submission when using the post method.
This property initially contains a string reflecting the enctype
attribute of the form tag, but using encoding will override
This property returns the number of elements in a form.
This property is a string specifying how information input in a form is
submitted to the server. This should return either 'get', which is the
default, or 'post'.
This property sets or returns the name of the form. Initially contains
the name attribute of the <form> tag.
This property sets or returns the target window that responses are sent
to after submission of a form.
This method invokes the event handler for the specified event.
This method resets the default values of any elements in a form. Emulates
the clicking of a Reset button (athough it is not nessecary to have a
reset button in a form to use this method).
This method submits a Form. This is the same as clicking a Submit
onReset Event handler
whenever the user resets a form by cicking a Reset button.
onSubmit Event handler
and as such, is included within the HTML <form> tag