Document.defaultView

브라우저의 document.defaultView문서와 연결된 window 객체를 반환합니다. 가능하지 않은 경우 null을 대신 반환합니다.

명세

Specification Status Comment
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

브라우저 호환성

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
defaultViewChrome Full support 1Edge Full support 12Firefox Full support 1IE Full support 9Opera Full support ≤12.1Safari Full support 1WebView Android Full support 1Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support ≤12.1Safari iOS Full support 1Samsung Internet Android Full support 1.0

Legend

Full support  
Full support