class js.html.TextAreaElement extends Element
Available on js
DOM TextArea
objects expose the HTMLTextAreaElement (or
HTML 4 HTMLTextAreaElement
) interface, which provides special properties and methods (beyond the regular element object interface they also have available to them by inheritance) for manipulating the layout and presentation of <textarea>
elements.
Documentation for this class was provided by MDN.
Instance Fields
Reflects the
autofocus
HTML attribute, indicating that the control should have input focus when the page loadsReflects the
disabled
HTML attribute, indicating that the control is not available for interaction.var form:FormElement
Reflects the
maxlength
HTML attribute, indicating the maximum number of characters the user can enter. This constraint is evaluated only when the value changes. Setter throws DOMException.var placeholder:String
Reflects the
placeholder
HTML attribute, containing a hint to the user about what to enter in the control.Reflects the
readonly
HTML attribute, indicating that the user cannot modify the value of the control.Reflects the
required
HTML attribute, indicating that the user must specify a value before submitting the form.Reflects the
rows
HTML attribute, indicating the number of visible text lines for the control.The direction in which selection occurred. This is "forward" if selection was performed in the start-to-end direction of the current locale, or "backward" for the opposite direction. This can also be "none" if the direction is unknown."
var selectionEnd:Int
The index of the end of selected text. HTML5 If no text is selected, contains the index of the character that follows the input cursor. On being set, the control behaves as if setSelectionRange() had been called with this as the second argument, and selectionStart as the first argument.
var selectionStart:Int
The index of the beginning of selected text. HTML5 If no text is selected, contains the index of the character that follows the input cursor. On being set, the control behaves as if setSelectionRange() had been called with this as the first argument, and selectionEnd as the second argument.
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.
var willValidate:Bool
Indicates whether the element is a candidate for constraint validation. It is false if any conditions bar it from constraint validation.
function setRangeText(replacement:String, start:Int, end:Int, selectionMode:String):Void
function setRangeText(replacement:String):Void
Throws DOMException.