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
BCD tables only load in the browser