HTMLTextAreaElement Interface
The HTMLTextAreaElement Interface is a multi-line text field.
IDL Definition
Interface HTMLTextAreaElement : HTMLElement {
attribute DOMString defaultValue;
readonly attribute HTMLFormElement form;
attribute DOMString accessKey;
attribute long cols;
attribute boolean disabled;
attribute DOMString name;
attribute boolean readOnly;
attribute long rows;
attribute long tabIndex;
readonly attribute DOMString type;
attribute DOMString value;
void blur();
void foucs();
void select();
};
Semantic Requirements
- The defaultValue attribute represents the contents of the element.
- The form attribute returns the FORM containing this control.
- The form attribute returns null if this control is not within the context of a form.
- The accessKey attribute is a single character access key to give access to the form control.
- The cols attribute contains the width of control (in characters).
- The disabled attribute indicates that the control is not available under this context.
- The name attribute is the form control or object name when submitted with a form.
- The readOnly attribute indicates that this control is read-only.
- The rows attribute contains the number of text rows.
- The tabIndex attribute is an index that represents the element's position in the tabbing order.
- The value of the type attribute is the string "textarea".
- The value attribute is the current content of the corresponding form control in an interactive user-agent.
Methods
- The blur() method removes keyboard focus from this element.
- The focus() method gives keyboard focus to this element.
- The select() method selects the content of the TEXTAREA.
If you have comments or suggestions, email me at mbrady@nist.gov