Summary
In browsers returns the window object associated with the 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)
|
defaultView
The window the document is displayed in Test page | no | yes | yes | yes | yes | yes | to be tested | |||||||||||||||||
document.defaultView Refers to the window. I have no idea why we need yet another reference to the window . | ||||||||||||||||||||||||
474

被折叠的 条评论
为什么被折叠?



