<html>
<body>
<p>Click the button to display this frame's height and width.</p>
<button onclick="myFunction()">Try it</button>
<p><strong>Note:</strong> The innerWidth and innerHeight properties are not supported in IE8 and earlier.</p>
<p id="demo"></p>
<script>
function myFunction() {
var w = window.innerWidth;
var h = window.innerHeight;
document.getElementById("demo").innerHTML = "Width: " + w + "<br>Height: " + h;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_innerheight by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:03:44 GMT -->
</html>