window.document
は、ウィンドウに含まれている文書への参照を返します。
例
console.log(window.document.title);
仕様書
仕様書 | 状態 | 備考 |
---|---|---|
HTML Living Standard Window.document の定義 |
現行の標準 | |
HTML5 Window.document の定義 |
勧告 |
ブラウザーの互換性
BCD tables only load in the browser
window.document
は、ウィンドウに含まれている文書への参照を返します。
console.log(window.document.title);
仕様書 | 状態 | 備考 |
---|---|---|
HTML Living Standard Window.document の定義 |
現行の標準 | |
HTML5 Window.document の定義 |
勧告 |
BCD tables only load in the browser