Name

ACRONYM, CITE, CODE, DFN, EM, KBD, SAMP, STRONG, VAR — NN n/a IE 4 DOM 1

Synopsis

All these objects reflect the corresponding HTML phrase elements of the same name. Each of these phrase elements provides a context for an inline sequence of content. Some of these elements are rendered in ways to distinguish themselves from running text. See the HTML element descriptions in Chapter 8 for details. From a scripted standpoint, all phrase element objects share the same set of properties, methods, event handlers, and collections.

HTML Equivalent

<ACRONYM>
<CITE>
<CODE>
<DFN>
<EM>
<KBD>
<SAMP>
<STRONG>
<VAR>

Object Model Reference

IE

[window.]document.all. elementID

Properties

className

isTextEdit

offsetLeft

outerHTML

sourceIndex

document

lang

offsetParent

outerText

style

id

language

offsetTop

parentElement

tagName

innerHTML

offsetHeight

offsetWidth

parentTextEdit

title

innerText

    

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

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.