Screen availHeight Property
Clash Royale CLAN TAG#URR8PPP
<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]-->
Screen availHeight Property
❮ Screen Object
Example
Get the available height of your screen:
var x = "Available Height: " + screen.availHeight;
<!--
The result of x will be:
document.write("Available Height: " + screen.availHeight);
-->Try it Yourself »
More "Try it Yourself" examples below.
Definition and Usage
The availHeight property returns the height of the user's screen,
in pixels, minus interface features like the Windows Taskbar.
Tip: To get the width of the screen (excluding the Windows
Taskbar), use the availWidth property.
Browser Support
Property | |||||
---|---|---|---|---|---|
availHeight | Yes | Yes | Yes | Yes | Yes |
<!--
mid_content, all: [300,250][336,280][728,90][970,250][970,90][320,50][468,60]-->
Syntax
screen.availHeight
Technical Details
Return Value: | A Number, representing the height of the user's screen, in pixels |
---|
More Examples
Example
All screen properties in one example:
var txt = "";
txt += "<p>Total width/height: " + screen.width + "*" + screen.height + "</p>";
txt += "<p>Available width/height: " + screen.availWidth + "*" + screen.availHeight + "</p>";
txt += "<p>Color depth: " + screen.colorDepth + "</p>";
txt += "<p>Color resolution: " + screen.pixelDepth + "</p>";
Try it Yourself »
❮ Screen Object