Screen: availWidth property
CSSOM view API
CSSOM view API
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
const screenAvailWidth = window.screen.availWidth;
console.log(screenAvailWidth);