Summary

Window.outerWidth gets 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.

This property is read-only; it has no default value.

Syntax

outWindowWidth = window.outerWidth;

On return, outWindowWidth is the width of the outside of the window.

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 Module
The definition of 'Window.outerWidth' in that specification.
Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 1Edge Full support YesFirefox Full support 1IE Full support 9Opera Full support 9Safari Full support 3WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 4Opera Android Full support 9Safari iOS Full support 3Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

See also

Document Tags and Contributors

Last updated by: connorshea,