Document.defaultView

ブラウザーにおいて、document.defaultView はドキュメントに関連付けられている window オブジェクトを返します。もし存在しない場合は null を返します。

構文

js
var win = document.defaultView;

このプロパティは読み取り専用です。

仕様書

Specification
HTML Standard
# dom-document-defaultview-dev

ブラウザーの互換性

BCD tables only load in the browser