The TEXTAREA element specifies a multi-line text input control and provides the following attributes and events.
Item |
Description |
accesskey |
Assigns an access key to an element. An access key is a single character from the document character set. Authors should consider the input method of the expected reader when specifying an accesskey. |
class |
Assigns a class name or set of class names to an element. Any number of elements may be assigned the same class name or names. Multiple class names must be separated by white space characters. |
cols |
Specifies how many characters wide the text area is. Users should be able to enter longer lines than this, so user agents should provide some means to scroll through the contents of the control when the contents extend beyond the visible area. User agents may wrap visible text lines to keep long lines visible without the need for scrolling. |
dir |
Specifies the direction of directionally neutral text in an element's content and attribute values: ltr indicates left-to-right text or table. rtl indicates right-to-left text or table. |
disabled |
When set for a form control, this boolean attribute disables the control for user input. |
id |
Assigns a name to an element. This name must be unique in a document. |
lang |
Specifies the base language of an element's attribute values and text content. The default value of this attribute is unknown. |
name |
Assigns the control name. |
onblur |
The onblur event occurs when an element loses focus either by the pointing device or by tabbing navigation. |
onchange |
The onchange event occurs when a control loses the input focus and its value has been modified since gaining focus. This attribute applies to the following elements: INPUT, SELECT, and TEXTAREA. |
onclick |
The onclick event occurs when the pointing device button is clicked over an element. |
ondblclick |
The ondblclick event occurs when the pointing device button is double clicked over an element. |
onfocus |
The onfocus event occurs when an element receives focus either by the pointing device or by tabbing navigation. |
onkeydown |
The onkeydown event occurs when a key is pressed down over an element. |
onkeypress |
The onkeypress event occurs when a key is pressed and released over an element. |
onkeyup |
The onkeyup event occurs when a key is released over an element. This attribute may be used with most elements. |
onmousedown |
The onmousedown event occurs when the pointing device button is pressed over an element. |
onmousemove |
The onmousemove event occurs when the pointing device is moved while it is over an element. |
onmouseout |
The onmouseout event occurs when the pointing device is moved away from an element. |
onmouseover |
The onmousemove event occurs when the pointing device is moved while it is over an element. |
onmouseup |
The onmouseup event occurs when the pointing device button is released over an element. |
onselect |
The onselect event occurs when a user selects some text in a text field. This attribute may be used with the INPUT and TEXTAREA elements. |
readonly |
When set for a form control, this boolean attribute prohibits changes to the control. |
rows |
Specifies the number of visible text lines in the control. Users should be able to enter more lines than this, so user agents should provide some means to scroll through the contents of the control when the contents extend beyond the visible area. |
style |
Specifies style information for the current element. The syntax of the value of the style attribute is determined by the default style sheet language. |
tabindex |
Specifies the position of the current element in the tabbing order for the current document. This value must be a number between 0 and 32767. User agents should ignore leading zeros. |
title |
Specifies advisory information about the element for which it is set. |
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|