Created
February 1, 2016 06:33
-
-
Save asemler/f05b5a365a52f262086f 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 getSize(method) { | |
return document.documentElement[method] || document.body[method]; | |
} | |
getSize("scrollTop"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment