English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Screen availHeight property

JavaScript Screen Object

availHeightA read-only property that returns the height of the area available on the screen for the application window.

The area of the application window is the entire screen except for the taskbar.

Syntax:

screen.availHeight
var x = "Available Height: " + screen.availHeight;
Test and see‹/›

Browser compatibility

All browsers fully support the availHeight property:

property
availHeightisisisisis

Technical details

Return value:A number representing the height of the user's screen, in pixels

More Examples

This example displays all screen properties:

var txt = "";
txt += "<p>Total width/height: " + screen.width + "*" + screen.height + "</p>";
txt += "<p>Available width/height: " + screen.availWidth + "*" + screen.availHeight +"</p>";
txt += "<p>Color depth: " + screen.colorDepth + "</p>";
txt += "<p>Color resolution: " + screen.pixelDepth + "</p>";
document.write(txt);
Test and see‹/›

Related References

Screen Reference:screen.availWidth property

Screen Reference:screen.colorDepth property

Screen Reference:screen.height property

Screen Reference:screen.width property

Screen Reference:screen.pixelDepth property

JavaScript Screen Object