Name

H1, H2, H3, H4, H5, H6 — NN n/a IE 4 DOM 1

Synopsis

These objects reflect the HTML header elements of the same names. See the description of the elements in Chapter 8 for examples of how various browsers render each of the header sizes.

HTML Equivalent

<H1>
<H2>
<H3>
<H4>
<H5>
<H6>

Object Model Reference

IE

[window.]document.all. elementID

Properties

align

innerText

offsetLeft

outerHTML

sourceIndex

className

isTextEdit

offsetParent

outerText

style

document

lang

offsetTop

parentElement

tagName

id

language

offsetWidth

parentTextEdit

title

innerHTML

offsetHeight

   

Methods

click( )

insertAdjacentHTML( )

scrollIntoView( )

contains( )

insertAdjacentText( )

setAttribute( )

getAttribute( )

removeAttribute( )

 

Collections/Arrays

all[]

children[]

filters[]

Event Handler Properties

Handler

NN

IE

DOM

onclick

n/a

4

n/a

ondblclick

n/a

4

n/a

ondragstart

n/a

4

n/a

onfilterchange

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

n/a

4

n/a

onmouseover

n/a

4

n/a

onmouseup

n/a

4

n/a

onselectstart

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.