Abstract
Returns a reference to the document that contains the window.
Syntax
doc = window.document
Settings
doc
is a reference to an object record .
Example
doc = window.document; window.dump (doc.title); // Displays the title of the current document in the console.
Specification
DOM Level 0. Not part of specification.