Web/API/Window/outerWidth

From Get docs


Window.outerWidth read-only property returns the width of the outside of the browser window. It represents the width of the whole browser window including sidebar (if expanded), window chrome and window resizing borders/handles.

Notes

To change the size of a window, see window.resizeBy() and window.resizeTo().

To get the inner width of a window, i.e. the width of the page being displayed, see window.innerWidth.

Specification

Specification Status Comment
CSS Object Model (CSSOM) View ModuleThe definition of 'Window.outerWidth' in that specification. Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
outerWidth Chrome

Full support 1

Edge

Full support 12

Firefox

Full support 1

IE

Full support 9

Opera

Full support 9

Safari

Full support 3

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 4

Opera Android

Full support 10.1

Safari iOS

Full support 3

Samsung Internet Android

Full support Yes

Legend

Full support  
Full support


See also