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 availWidth read-only property of the Screen interface 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> |