Latest web development tutorials

Screen height property

Screen Object Reference Screen objects

Definition and Usage

height attribute declares the browser displays a screen height in pixels.

grammar

screen.height


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support height attribute


Examples

Examples

Returns the total height of your screen:

<Script>

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

</ Script>

Examples of the above output:


try it"


Examples s

More examples

This example contains all the properties of the screen.


Screen Object Reference Screen objects