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

  1. The defaultValue attribute represents the contents of the element.
  2. The form attribute returns the FORM containing this control.
  3. The form attribute returns null if this control is not within the context of a form.
  4. The accessKey attribute is a single character access key to give access to the form control.
  5. The cols attribute contains the width of control (in characters).
  6. The disabled attribute indicates that the control is not available under this context.
  7. The name attribute is the form control or object name when submitted with a form.
  8. The readOnly attribute indicates that this control is read-only.
  9. The rows attribute contains the number of text rows.
  10. The tabIndex attribute is an index that represents the element's position in the tabbing order.
  11. The value of the type attribute is the string "textarea".
  12. The value attribute is the current content of the corresponding form control in an interactive user-agent.
  13. Methods

  14. The blur() method removes keyboard focus from this element.
  15. The focus() method gives keyboard focus to this element.
  16. The select() method selects the content of the TEXTAREA.

If you have comments or suggestions, email me at mbrady@nist.gov