HTML DOM window document Property (original) (raw)

Last Updated : 15 Jul, 2025

The HTML DOM window document returns a reference to the document contained in the current window.

Syntax:

doc = window.document;

Return Value: This property returns a reference to the document.

Example: In this example, we will get the title of the document using that document reference.

html `

Window document property

GeeksforGeeks

HTML | window document property

Click Here

`

Output:

We have a complete list of HTML DOM methods, to check those please go through this HTML DOM Object Complete reference article.

Supported Browsers:

We have a Cheat Sheet on Javascript where we covered all the important topics of Javascript to check those please go through Javascript Cheat Sheet-A Basic guide to JavaScript.