how to loop through all tags in html code example
Example: how to loop through all tags in html
var tags = document.getElementsByTagName("*");
for (var i=0, max=tags.length; i < max; i++) {
console.log(tags[i]);
}
var tags = document.getElementsByTagName("*");
for (var i=0, max=tags.length; i < max; i++) {
console.log(tags[i]);
}