The HTML DOM element is traversed with getElementsByTagName
January 7, 2024
by Thomas Holden
No Comments
var eles = document.getElementsByTagName(“div”); for (var i = 0; i < eles.length; i++) { if (eles[i].id.indexOf(“ddd_”) ! = 1) {alert(” find div: “+ eles[I].id); }}