Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

document

The document property of the Window object returns a reference to the Document object, which can access the entire tree of elements nested in the document. It also provides access to functionality for accessing and manipulating the page content through scripts.

Syntaxwindow.document
<html> <body lang="en"> <script> var bodyLanguage = document.body.lang; document.write( bodyLanguage ); </script> </body> </html>

See the Document object for more information.

JavaScript

Properties

bodycalleeclosedcookiedocumentdropEffecteffectAllowedfilesframeElementframeshistoryInfinityinnerHeightinnerHTMLinnerWidthlengthlocationlocationbarnameNaNnavigatornullopenerouterHeightparentprototypescreenstatetextContentundefined