Window.outerHeight

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

Window.outerHeight は読み取り専用のプロパティで、サイドバー、ウィンドウの操作部分、ウィンドウをリサイズする境界やハンドルを含む、ブラウザーウィンドウ全体の高さをピクセル単位で表します。

メモ

ウィンドウの大きさを変更するには、 window.resizeBy() および window.resizeTo() を使用してください。

ウィンドウの内側の高さ、つまりページが表示される高さを取得するには、 window.innerHeight を使用してください。

図による例示

以下の図は、 outerHeightinnerHeight の違いを示しています。

innerHeight vs outerHeight illustration

仕様書

Specification
CSSOM View Module
# dom-window-outerheight

ブラウザーの対応

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
outerHeight

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報