Name

TEXTAREA — NN 2 IE 3 DOM 1

Synopsis

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.

HTML Equivalent

<TEXTAREA>

Object Model Reference

NN

[window.]document. formName . elementName

[window.]document.forms[i].elements[i]

IE

[window.]document. formName . elementName

[window.]document.forms[i].elements[i]

[window.]document.all. elementID

Properties

accessKey

defaultValue

name

parentElement

sourceIndex

className

disabled

offsetHeight

parentTextEdit

style

clientHeight

document

offsetLeft

readOnly

tabIndex

clientLeft

form

offsetParent

rows

tagName

clientTop

id

offsetTop

scrollHeight

title

clientWidth

isTextEdit

offsetWidth

scrollLeft

type

cols

lang

outerHTML

scrollTop

value

dataFld

language

outerText

scrollWidth

wrap

dataSrc

    

Methods

blur( )

getAttribute( )

removeAttribute( )

click( )

handleEvent( )

scrollIntoView( )

contains( )

insertAdjacentHTML( )

select( )

createTextRange( )

insertAdjacentText( )

setAttribute( )

focus( )

  

Collections/Arrays

all[]

children[]

filters[]

Event Handler Properties

Handler

NN

IE

DOM

onafterupdate

n/a

4

n/a

onbeforeunload

n/a

4

n/a ...

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.