Created
August 13, 2016 09:11
-
-
Save alizhdanov/9918571b99a6af6dfeb937c1f8719474 to your computer and use it in GitHub Desktop.
Cross browser solution to find page height in Javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scrollHeight = Math.max( | |
document.body.scrollHeight, document.documentElement.scrollHeight, | |
document.body.offsetHeight, document.documentElement.offsetHeight, | |
document.body.clientHeight, document.documentElement.clientHeight | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment