# Document: defaultView property



In browsers, **`document.defaultView`** returns the
[window](https://developer.mozilla.org/en-US/docs/Web/API/Window) object associated with [a document](https://developer.mozilla.org/en-US/docs/Glossary/Browsing_context), or `null` if none is available.

This property is read-only.

## Value

The [window](https://developer.mozilla.org/en-US/docs/Web/API/Window) object.

## Specifications

## Browser compatibility
