Javascript examples for Browser Object Model:Window innerHeight
Find the viewport's height via window object
<html> <head> <style> body { height: 3000px; } </style> <script> onload = function() {//from w w w .j ava 2 s. c o m console.log(window.innerHeight) } </script> </head> <body> hi </body> </html>