Last active
November 6, 2019 21:12
-
-
Save intolerance/c6dfa9ec2f0eeaa71a86f608be0749c6 to your computer and use it in GitHub Desktop.
Finds an element whos ScrollTop is greater than 0
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 all = document.getElementsByTagName("*"), i = 0; | |
for (; i < all.length; i++) { | |
if (all[i].scrollTop !== 0 ){ | |
console.log(all[i]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copy and paste in to Chrome's Developer Tools Console