javascript get total window height code example
Example 1: get total height of page javascript
var _docHeight = (document.height !== undefined) ? document.height : document.body.offsetHeight;
Example 2: get window height javascript
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
"Screen width is " + screen.width;
</script>