How to find the height of the screen

Manideepgoud
Posted by Manideepgoud under JavaScript category on | Points: 40 | Views : 176
We use screen.height to find the height of the screen .
<p id="kid"></p>
<script>
var a= document.getElementById("kid").innerHTML =
"Screen height is " + screen.height;
</script>


It displays the height of the screen in the output

Comments or Responses

Login to post response