Name

document — NN n/a IE 4 DOM n/a

Synopsis

Read-only

Returns a reference to the document object that contains the current element. In some ways this is a redundant property, because any reference you build to an element is likely to contain the document as part of the reference.

Example

var currDoc = document.all.elementID.document

Value

Object reference.

Default

The current document 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.