Screen availHeightProperty
Screen Object
Definition and Usage
The availHeight property declares the available height of the screen displaying the browser, in pixels. In operating systems like Windows, this available height does not include the vertical space allocated to semi-permanent features such as the taskbar at the bottom of the screen.
Syntax
screen.availHeight
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the availHeight property.
Example
Example
Return the available height of the screen:
<script>
document.write("Available height: " + screen.availHeight);
</script>
document.write("Available height: " + screen.availHeight);
</script>
The output of the above example is:
Try it Yourself »
More Examples
All screen properties in an example
Screen Object Other Extensions