O'Reilly logo

Dynamic HTML: The Definitive Reference by Danny Goodman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required