Summary
In browsers, document.defaultView
returns the window object associated with a document, or null
if none available.
Syntax
var win = document.defaultView;
This property is read-only.
Notes
According to quirksmode, defaultView
is not supported in IE until IE 9.
Specification
- HTML5: defaultView
- DOM Level 2 Views: defaultView
- DOM Level 3 Views (Only developed to Working Group Note and not implemented)