TEXTAREA.type (Property)

The type indicator for this Input object.

Availability:

DOM level - 1
JavaScript - 1.1
JScript - 3.0
Internet Explorer - 4.0
Netscape - 3.0
Opera - 3.0
Property/method value type:String primitive
JavaScript syntax:-myTEXTAREA.type

This property is supported to remain consistent with all other form elements. The value returned by a TEXTAREA object should always be "textarea".

This allows you to determine the input type when the form elements array is traversed. Then you can select appropriate handling based on the type value for the element.

See also:Input.type

Property attributes:

ReadOnly.