web api instance property
Screen: availWidth property
The Screen.availWidth property returns the amount of
horizontal space (in CSS pixels) available to the window.
Value
A number.
Examples
const screenAvailWidth = window.screen.availWidth;
console.log(screenAvailWidth);
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.