HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
length
The number of elements in the form
method
The type of method used when submitting the form
name
The name of the form
noValidate
A Boolean indicating that the form should not be validated before submission
target
The name of the window into which CGI output should be directed
Methods
checkValidity()
Checks the form to confirm that it passes validation tests
dispatchFormChange()
Triggers a formchange event on each control in the form
dispatchFormInput()
Triggers a forminput event on each control in the form
handleEvent( event )
Invokes the event handler for the specified event
reset()
Resets the form
submit()
Submits the form to the CGI script
urns( urn )
Retrieves a collection of all elements to which the behavior of string urn is attached
FormControl
A control within a Web form
Properties
autofocus
A Boolean indicating whether the control should receive the keyboard focus
disabled
A Boolean indicating whether the control is disabled
labels
An array of Label objects associated with the control
name
The name of the control
type
The type of the control
validationMessage
The message displayed when the control value is invalid
validity
A Boolean specifying whether the control value is valid
value
The default value of the control
willValidate
A Boolean indicating whether the control will be included in form validation
Methods
checkValidity()
Returns true if the control is valid or not subject to validation
setCustomValidity( error )
Marks the control as invalid using the error error message to explain why
FormData
An HTTP data request body created using the constructor
new FormData()
Methods
append( name , value )
Appends a new part with the specified name and value to the object
FormValidity
An object containing form validation information
Properties
customError
A custom form validation error script
patternMismatch
A Boolean indicating that the value does not match the regular expression
rangeOverflow
A Boolean indicating that the value is too large
rangeUnderflow
A Boolean indicating that the value is too small
stepMismatch
A Boolean indicating that the value does not match the specified step
tooLong
A Boolean indicating that the value is too long
typeMismatch
A Boolean indicating that the value is of the wrong type
valid
A Boolean indicating that the value is valid
valueMissing
A Boolean indicating that the value is required but missing
Search WWH ::




Custom Search