Screen availHeight property
Definition and Usage
availHeight attribute declares the browser display screen available height in pixels. In such an operating system Windows, this available height does not include allocated to semi-permanent features (such as the task bar at the bottom of the screen) of vertical space.
grammar
screen.availHeight
Browser Support
All major browsers support availHeight property
Examples
Examples
Returns the available height of the screen:
<script>
document.write("可用高度: " + screen.availHeight);
</script>
document.write("可用高度: " + screen.availHeight);
</script>
Examples of the above output:
try it"
More examples
All properties in one screen in the example
Screen objects