Screen: availWidth property

The Screen.availWidth property returns the amount of horizontal space (in 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

BCD tables only load in the browser