Screen availHeightProperty

Screen Object 参考手册 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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the availHeight property.


Example

Example

Return the available height of the screen:

<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 对象参考手册Screen Object Other Extensions