Name

DIV — NN n/a IE 4 DOM 1

Synopsis

The DIV object reflects the DIV element. This element creates a block-level element often used for element positioning or containment grouping of several related elements. In the Windows version of IE 4, the client and scroll properties are not available unless the DIV element has its position style attribute set to absolute.

HTML Equivalent

<DIV>

Object Model Reference

IE

[window.]document.all. elementID

Properties

align

document

language

outerHTML

scrollTop

className

isTextEdit

offsetHeight

outerText

scrollWidth

clientHeight

id

offsetLeft

parentElement

sourceIndex

clientWidth

innerHTML

offsetParent

parentTextEdit

style

dataFld

innerText

offsetTop

scrollHeight

tagName

dataFormatAs

lang

offsetWidth

scrollLeft

title

dataSrc

    

Methods

blur( )

getAttribute( )

removeAttribute( )

click( )

insertAdjacentHTML( )

scrollIntoView( )

contains( )

insertAdjacentText( )

setAttribute( )

focus( )

  

Collections/Arrays

all[]

children[]

filters[]

Event Handler Properties

Handler

NN

IE

DOM

onafterupdate

n/a

4

n/a

onbeforeupdate

n/a

4

n/a

onblur

n/a

4

n/a

onchange

n/a

4

n/a

onclick

n/a

4

n/a

ondblclick

n/a

4

n/a

ondragstart

n/a

4

n/a

onfocus

n/a

4

n/a

onhelp

n/a

4

n/a

onkeydown

n/a

4

n/a

onkeypress

n/a

4

n/a

onkeyup

n/a

4

n/a

onmousedown

n/a

4

n/a

onmousemove

n/a

4

n/a

onmouseout ...

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.