Back to Content

Screen: availWidth property

files/en-us/web/api/screen/availwidth/index.md

latest351 B
Original Source

{{APIRef("CSSOM view API")}}

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

{{Specifications}}

Browser compatibility

{{Compat}}