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

BODY — NN n/a IE 4 DOM 1

Synopsis

The BODY object reflects the BODY element, which is distinct from the document object. The BODY object refers to just the element and its nested content. The BODY object is special in IE 4 in that it is the gateway to many important visual aspects of content on the page, such as background, margins, and scrolling. There is a shortcut reference to the object, document.body, so you don’t have to build a reference via the document.all. elementID hierarchy.

HTML Equivalent

<BODY>

Object Model Reference

IE

[window.]document.body

Properties

accessKey

clientTop

leftMargin

outerText

scrollWidth

alink

clientWidth

link

parentElement

sourceIndex

background

document

noWrap

parentTextEdit

style

bgColor

id

offsetHeight

recordNumber

tabIndex

bgProperties

innerHTML

offsetLeft

rightMargin

tagName

bottomMargin

innerText

offsetParent

scroll

text

className

isTextEdit

offsetTop

scrollHeight

title

clientHeight

lang

offsetWidth

scrollLeft

topMargin

clientLeft

language

outerHTML

scrollTop

vLink

Methods

click( )

getAttribute( )

removeAttribute( )

contains( )

insertAdjacentHTML( )

scrollIntoView( )

createTextRange( )

insertAdjacentText( )

setAttribute( )

Collections/Arrays

all[]

children[]

filters[]

Event Handler Properties

Handler

NN

IE

DOM

onafterupdate

n/a

4

n/a

onbeforeunload

n/a

4

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