YouTip LogoYouTip

Prop Screen Availheight

```html Screen availHeight Property | Rookie Tutorial

Screen availHeight Property

Return the available height of the screen:

document.getElementById("demo").innerHTML =
"Available screen height: " + screen.availHeight;

Definition and Usage

The availHeight property returns the height of the screen (excluding the Windows taskbar).

In pixels.

Browser Support

IE, Firefox, Chrome, Safari, Opera all support the availHeight property.

Syntax

screen.availHeight

Technical Details

Return Value:A Number, representing the available height of the screen in pixels
JavaScript Version:1.2

More Examples

Display the available height and width of the screen:

document.write("Available screen width: " + screen.availWidth);
document.write("<br>");
document.write("Available screen height: " + screen.availHeight);

Related Pages

Screen availWidth Property

Screen width Property

Screen height Property

```
← Prop Screen AvailwidthMet Win Settimeout β†’