Skip to content

Instantly share code, notes, and snippets.

@jeremypele
Created November 16, 2016 19:29
Show Gist options
  • Save jeremypele/77b0283b2267d34202e7f4b94d64f0f2 to your computer and use it in GitHub Desktop.
Save jeremypele/77b0283b2267d34202e7f4b94d64f0f2 to your computer and use it in GitHub Desktop.
Count DOM elements on page
document.getElementsByTagName('*').length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment