Screen: availWidth property

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.

The Screen.availWidth property returns the amount of horizontal space (in CSS pixels) available to the window.

Value

A number.

Examples

js
const screenAvailWidth = window.screen.availWidth;

console.log(screenAvailWidth);

Specifications

Specification
CSSOM View Module
# dom-screen-availwidth

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
availWidth