Search w3schools.com:

SHARE THIS PAGE

Screen height Property

Screen Object Reference Screen Object

Definition and Usage

The height property returns the total height of the visitor's screen, in pixels.

Syntax

screen.height


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The height property is supported in all major browsers.


Example

Example

Return the total height of your screen:

<script>

document.write("Total Height: " + screen.height);

</script>

The output of the code above will be:


Try it yourself »


Examples

More Examples

All screen properties in one example


Screen Object Reference Screen Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]