Platform Support
| Mozilla | Chrome | Safari | Opera | IE | Netscape | 3.7+ | no | no | 9.0+ | no | no |
|---|
Constructors
| Constructor | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
HTMLOutputElement Constructor() : HTMLOutputElement
Creates an instance of the HTMLOutputElement.
|
Show Details | 3.7+ | no | no | 9.0+ | no | no | ||
HTMLOutputElement() : HTMLOutputElementCreates an instance of the HTMLOutputElement. Returns
|
|||||||||
Properties
| Property | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape |
|---|---|---|---|---|---|---|---|
|
htmlFor
: DOMSettableTokenList
Allows an explicit relationship to be made between the result of a calculation and the elements that represent the values
that went into the calculation or that otherwise influenced the calculation.
|
Show Details | 3.7+ | no | no | 9.0+ | no | no |
|
|||||||
|
form
: HTMLFormElement
Used to explicitly associate the output element with its form owner.
|
Show Details | 3.7+ | no | no | 9.0+ | no | no |
|
|||||||
|
name
: String
Specifies the name of the output element.
|
Show Details | 3.7+ | no | no | 9.0+ | no | no |
|
|||||||
|
type
: String
Returns the string "output".
|
Show Details | 3.7+ | no | no | 9.0+ | no | no |
|
|||||||
|
defaultValue
: String
Returns the element's current default value.
|
Show Details | 3.7+ | no | no | 9.0+ | no | no |
|
|||||||
|
value
: String
Acts like the element's textContent IDL attribute, except that on setting, in addition, before the child nodes are changed,
the element's value mode flag must be set to value.
|
Show Details | 3.7+ | no | no | 9.0+ | no | no |
|
|||||||
|
willValidate
: Boolean
Specifies whether the element will be validated when the form is submitted.
|
Show Details | 3.7+ | no | no | 9.0+ | no | no |
|
|||||||
|
validity
: ValidityState
Specifies the validity of the element.
|
Show Details | 3.7+ | no | no | 9.0+ | no | no |
|
|||||||
|
validationMessage
: String
Specifies a suitably localized message that the user agent would show the user if this were the only form control with a validity
constraint problem.
|
Show Details | 3.7+ | no | no | 9.0+ | no | no |
|
|||||||
Inherited Functions
| Method | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
getElementsByClassName(String classNames) : NodeList
Returns a NodeList containing all the
Element nodes with the specified classNames. |
Show Details | 1.9+ | 5.0+ | 3.1+ | 9.51+ | no | no | |||||
|
Parameters
Returns
|
||||||||||||
Functions
| Method | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | |||
|---|---|---|---|---|---|---|---|---|---|---|
|
checkValidity() : Boolean
The user agent must instanceally validate the constraints of the form element, and return true if the constraint validation
return a positive result, and false if it returned a negative result.
|
Show Details | 3.7+ | no | no | 9.0+ | no | no | |||
|
Returns
|
||||||||||
|
setCustomValidity(String error) :
void
Sets the custom validity error message to the value of the given message argument.
|
Show Details | 3.7+ | no | no | 9.0+ | no | no | |||
|
Parameters
|
||||||||||
References
Availability
JavaScript 1.2|WhatWG