MDN self-hosted library · e01.org

Screen: availWidth property

CSSOM view API

Open notebook · 1 cells web-api-instance-property upstream source

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);

Specifications

Browser compatibility