Document: defaultView property
{{APIRef("DOM")}}
In browsers, document.defaultView returns the
{{domxref("Window", "window")}} object associated with {{Glossary("Browsing_context", "a document")}}, or null if none is available.
This property is read-only.
Value
The {{domxref("Window", "window")}} object.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
这篇文档对你有帮助吗?
谢谢你的反馈!