Back to Content

Document: defaultView property

files/en-us/web/api/document/defaultview/index.md

latest366 B
Original Source

{{APIRef("DOM")}}

In browsers, document.defaultView returns the {{domxref("Window", "window")}} object associated with {{Glossary("Browsing_context", "a document")}}, or null if none is available.

This property is read-only.

Value

The {{domxref("Window", "window")}} object.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}