Window.outerWidth

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.outerWidth 는 브라우저 윈도우 바깥쪽의 폭을 얻어온다. 이것은 브라우저 윈도우의 사이드바와 가장자리 경계선을 포함한 폭을 나타내어 준다.

이 값은 읽기전용이다. 그리고 기본값이 없다.

문법

js
outWindowWidth = window.outerWidth;

반환이 끝나면 outWindowWidth는 윈도우의 바깥경계를 포함한 너비(폭)를 담고 있다.

노트

이 사이즈를 변경하기 위해서는, window.resizeBy() 또는 window.resizeTo()를 참조하세요.

윈도우의 안쪽 폭 즉, 현재 표시되고있는 창의 폭을 얻으려면 window.innerWidth를 참조하세요.

명세서

Specification
CSSOM View Module
# dom-window-outerwidth

브라우저 호환성

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
outerWidth

Legend

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

Full support
Full support

같이 보기