X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Screen availHeight Property

Screen Object Reference Screen Object

Example

Return the available height of your screen:

var x = "Available Height: " + screen.availHeight;

The result of x will be:


Try it yourself »


Definition and Usage

The availHeight property returns the height of the user's screen, in pixels, minus interface features like the Windows Taskbar.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The availHeight property is supported in all major browsers.


Syntax

screen.availHeight

Return Value

Type Description
Number The height of the user's screen, in pixels


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]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook