Screen availHeight Property - All screen properties in one example: - Javascript Browser Object Model

Javascript examples for Browser Object Model:Screen

Description

Screen availHeight Property - All screen properties in one example:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<h3>Your Screen:</h3>

<div id="demo"></div>

<script>
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>";

document.getElementById("demo").innerHTML = txt;
</script>/*from   w  w  w .  ja  v  a  2  s . com*/

</body>
</html>

Related Tutorials