Javascript Reference
Categories: TEXTAREA

javascript TEXTAREA Description

@March 15, 2008, 1:22 a.m.
textareaFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

  

The textarea object reflects the textarea element and is used as a form control. This object is the primary way of getting a user to enter multiple lines of text for submission to the server. Note that the innerHTML property is not available on the Macintosh version of Internet Explorer 4. Only a limited number of properties and methods shown below are available in early browsers that do not support addressing all HTML elements (prior to IE 4 and Netscape 6). IE 5 and later support the shared doScroll( ) method for this object.

 
HTML Equivalent
 
<textarea>
 
Object Model Reference
 
[window.]document.formName.elementName
[window.]document.forms[i].elements[j]
[window.]document.getElementById("elementID")
 
Object-Specific Properties
 
colsdataFlddataSrcdefaultValueform
namereadOnlyrowsstatustype
valuewrap
 
Object-Specific Methods
 
createTextRange( )handleEvent[ ]select( )
 
Object-Specific Event Handler Properties
 
HandlerFirefox/Netscape/NNIEChrome/Safari/DOM
onblur23n/a
onchange23n/a
onfocus23n/a
onkeydown44n/a
onkeypress44n/a
onkeyup44n/a
onscrolln/a4n/a
onselect23n/a

Powered by Linode.