Latest web development tutorials

Screen availHeight property

Screen Object Reference Manual Screen Object

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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support availHeight property


Examples

Examples

Returns the available height of the screen:

<script>

document.write("可用高度: " + screen.availHeight);

</script>

Examples of the above output:


try it"


Examples

More examples

All properties in one screen in the example


Screen Object Reference Screen objects