Last active
May 2, 2016 17:36
-
-
Save bannostookaylo/3ea17cf841cdc6f2b50142ab14ba764d to your computer and use it in GitHub Desktop.
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
function getDocHeight(D) { | |
return Math.max( | |
Math.max(D.body.scrollHeight, D.documentElement.scrollHeight), | |
Math.max(D.body.offsetHeight, D.documentElement.offsetHeight), | |
Math.max(D.body.clientHeight, D.documentElement.clientHeight) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment