Skip to content

Instantly share code, notes, and snippets.

@intolerance
Last active November 6, 2019 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save intolerance/c6dfa9ec2f0eeaa71a86f608be0749c6 to your computer and use it in GitHub Desktop.
Save intolerance/c6dfa9ec2f0eeaa71a86f608be0749c6 to your computer and use it in GitHub Desktop.
Finds an element whos ScrollTop is greater than 0
var all = document.getElementsByTagName("*"), i = 0;
for (; i < all.length; i++) {
if (all[i].scrollTop !== 0 ){
console.log(all[i]);
}
}
@intolerance
Copy link
Author

Copy and paste in to Chrome's Developer Tools Console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment