# Window: document property



**`window.document`** returns a reference to the [document](https://developer.mozilla.org/en-US/docs/Web/API/Document) contained in the window.

## Value

A [document](https://developer.mozilla.org/en-US/docs/Web/API/Document) object.

## Examples

```js
console.log(window.document.title);
```

## Specifications

## Browser compatibility
