Easy Tutorial
❮ Prop Input Time Value Prop Text Readonly ❯

Screen height Property


Definition and Usage

The height property declares the height of the display screen of the browser, measured in pixels.

Syntax


Browser Support

All major browsers support the height property.


Example

Return the total height of your screen:

<script>
document.write("Total Height: " + screen.height);
</script>

The above example outputs:

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

More Examples

This example includes all screen properties.


❮ Prop Input Time Value Prop Text Readonly ❯