MDN self-hosted library · e01.org

Window: document property

HTML DOM

Open notebook · 1 cells web-api-instance-property upstream source

HTML DOM

The document read-only property of the Window interface returns a reference to the document contained in the window.

Value

A document object.

Examples

console.log(window.document.title);

Specifications

Browser compatibility