Skip to content

wmeredith/Counting-JavaScript-HTML-DOM-Elements-Nodes-

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Counting JavaScript HTML DOM Elements (Nodes)

This JS snippet will fire an alert telling you how many DOM elements are on your web page.

javascript: (function () {alert(document.getElementsByTagName('*').length); }());

Bookmarklet

Get the bookmarklet here.

This is handy as a bookmarklet. The actual bookmarklet is on another page because Markdown doesn't support JS.

Just follow the link above and then add the link shown to your favorites in any modern browser.

About

Count the number of JavaScript HTML DOM Elements (Nodes) on a page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published