Window.document
window.document
returns a reference to the document contained in the window.
Example
console.log(window.document.title);
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'Window.document' in that specification. |
Living Standard | |
HTML5 The definition of 'Window.document' in that specification. |
Recommendation |
Browser compatibility
BCD tables only load in the browser