We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

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


var win = document.defaultView;

This property is read-only.


Specification Status Comment
HTML Living Standard
The definition of 'Document.defaultView' in that specification.
Living Standard No change
The definition of 'Document.defaultView' in that specification.
Recommendation Initial definition

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Firefox (Gecko) Chrome Edge Internet Explorer Edge Opera Safari
Basic support (Yes) (Yes)(Yes) 9.0 0.10 (Yes) (Yes)
Feature Firefox Mobile (Gecko) Android Edge IE Mobile Opera Mobile Safari Mobile
Basic support ? ? ? ? ? ?

Document Tags and Contributors

 Last updated by: erikadoyle,