现在的位置: 首页 > 综合 > 正文

document.defaultView

2013年09月15日 ⁄ 综合 ⁄ 共 552字 ⁄ 字号 评论关闭

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



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

.

http://www.quirksmode.org/dom/w3c_html.html


【上篇】
【下篇】

抱歉!评论已关闭.