Javascript Reference
Categories: window

javascript window document

@March 15, 2008, 1:22 a.m.
documentFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 2  

Read-only  

Returns a reference to the document object contained by the window. In browsers that offer W3C DOM document tree support, this property points more specifically to the root HTMLDocument node for the document tree loaded in the window. The W3C DOM even describes this property as a member of one of its View objects (analogous to a browser window). This is the property that lets scripts references to document methods and content begin with the word document.

 
Example
 
var oneElem = document.getElementById("myP");
 
Value

Reference to the root document object.

 
Default

Reference to the root document object.


Powered by Linode.