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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.