Window screen.availHeight

Example

Get the available height of your screen:

let height = screen.availHeight;
Try it Yourself »

More "Try it Yourself" examples below.


Description

The availHeight property returns the height of the user's screen.

The availHeight property returns the height in pixels.

The availHeight property returns the height minus interface features like the Windows Taskbar.

Note

To get the width of the screen, use the availWidth property.



Syntax

screen.availHeight

Return Value

Type Description
A numberThe height of the user's screen, in pixels.

More Examples

All screen properties:

let text = "Total width/height: " + screen.width + "*" + screen.height + "<br>" +
"Available width/height: " + screen.availWidth + "*" + screen.availHeight + "<br>" +
"Color depth: " + screen.colorDepth + "<br>" +
"Color resolution: " + screen.pixelDepth;
Try it Yourself »

Browser Support

screen.availHeight is supported in all browsers:

Chrome Edge Firefox Safari Opera IE
Yes Yes Yes Yes Yes Yes


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.