In browsers, document.defaultView returns the window object associated with a document, or null if none is available.
document.defaultView
window
null
This property is read-only.
The window object.