package js.html
extends Element › DOMElement › Node › EventTarget
Available on js
The HTMLOutputElement interface provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of output elements.
Documentation HTMLOutputElement by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
defaultValue:StringA DOMString representing the default value of the element, initially the empty string.
read onlyform:FormElementAn HTMLFormElement indicating the form associated with the control, reflecting the form HTML attribute if it is defined.
read onlyhtmlFor:DOMTokenListA DOMTokenList reflecting the for HTML attribute, containing a list of IDs of other elements in the same document that contribute to (or otherwise affect) the calculated value.
read onlylabels:NodeListA NodeList of label elements associated with the element.
name:StringA DOMString reflecting the name HTML attribute, containing the name for the control that is submitted with form data.
read onlytype:StringThe DOMString "output".
read onlyvalidationMessage:StringA DOMString representing a localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.
read onlyvalidity:ValidityStateA ValidityState representing the validity states that this element is in.
value:StringA DOMString representing the value of the contents of the elements. Behaves like the Node.textContent property.
read onlywillValidate:BoolA Boolean indicating whether the element is a candidate for constraint validation.
checkValidity():BoolChecks the validity of the element and returns a Boolean holding the check result.
reportValidity():BoolTriggers an invalid event and evaluates its result. if the result is true, then the problems with the constraints of this element are reported to the user. When the problem is reported, the user agent may focus the element and change the scrolling position of the document or perform some other action that brings the element to the user's attention. User agents may report more than one constraint violation if this element suffers from multiple problems at once. If the element is not rendered, then the user agent may report the error for the running script instead of notifying the user.
setCustomValidity(error:String):VoidSets a custom validity message for the element. If this message is not the empty string, then the element is suffering from a custom validity error, and does not validate.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/OutputElement.html