Name

body — NN n/a IE 4 DOM 1

Synopsis

Read-only

Returns a reference to the BODY object defined by the BODY element within the document. This property is used as a gateway to the BODY object’s properties.

Example

document.body.leftMargin = 15

Value

Object reference.

Default

The current BODY object.

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.