Guest User

jQuery innerHeight question

a guest
Dec 11th, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.37 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script src='http://code.jquery.com/jquery-1.11.1.js'></script>
  4. <script>
  5. $(window).on('load', function() {
  6.   $('#filler').height(window.innerHeight);
  7.   $('#filler').text("window.innerHeight = " + window.innerHeight + ", $(window).innerHeight() = " + $(window).innerHeight());
  8. });
  9. </script>
  10. </head>
  11. <body>
  12.     <div id='filler'></div>
  13. </body>
  14. </html>
Advertisement
Add Comment
Please, Sign In to add comment