Document: defaultView property

In browsers, document.defaultView returns the window object associated with a document, or null if none is available.

This property is read-only.

Value

The window object.

Specifications

Specification
HTML Standard
# dom-document-defaultview-dev

Browser compatibility

BCD tables only load in the browser