In browsers, document.defaultView
returns the window
object associated with a document, or null
if none is available.
Syntax
var win = document.defaultView;
This property is read-only.
Specifications
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'Document.defaultView' in that specification. |
Living Standard | No change |
HTML5 The definition of 'Document.defaultView' in that specification. |
Recommendation | Initial definition |
Browser compatibility
Document Tags and Contributors
Tags:
Contributors to this page:
erikadoyle,
Sebastianz,
Tigt,
teoli,
ziyunfei,
kscarfone,
Sheppy,
ethertank,
MatrixFrog,
joeflateau,
Nickolay,
Brettz9,
Bedi,
RobG
Last updated by:
erikadoyle,