Body

The Bodu obejct reflects the functionality of the Html BODY element, which is used to encapsulate the visual portion of the code within your document. The properties of the Body object include margin properties, colors, and textual properties, and many more. Peruse the list of properties to get a list of what can be achieved through the use of the body object.

DOM Reference

Internet Explorer

window.document.body

The properties of the Body object are:

accessKey
alink
background
bgColor
bgProperties
bottomMargin
className
clientHeight
clientLeft
clientTop
clientWidth
document
id
innerHtml
innerText
isTextEdit
lang
language
leftMargin
link
noWrap
offsetHeight
offsetLeft
offsetParent
offsetTop
offsetWidth
outerHtml
outerText
parentElement
parentTextEdit
recordNumber
rightMargin
scroll
scrollHeight
scrollLeft
scrollTop
scrollWidth
sourceIndex
style
tabIndex
tagName
text
title
topMargin
vlink

The Methods of the Body object are:

click()
contains()
getAttribute()
insertdjacentHtml()
insertAdjacentText()
removeAttribute()
scrollIntoView()
setAttribute()

The Collections and Arrays for the Body object are:

all [ ]
children [ ]
filters [ ]

The Event Handlers for the Body object are:

onAfterUpdate
onBeforeUnload
onBeforeUpdate
onChange
onClick
onDataAvailable
onDataSetChanged
onDataSetComplete
onDblClick
onDragStart
onErrorUpdate
onFilterChange
onHelp onKeyDown
onKeyPress
onKeyUp
onMouseDown
onMouseMove
onMouseOut
onMouseOver
onMouseUp
onRowEnter
onRowexit
onScroll
onSelectStart
onUnload