javascript dom methods list code example
Example: javascript dom methods list
var myLinkCollection = document.getElementsByTagName(“abc”);
for (i = 0; i < myLinkCollection.length; i++) {
if (myLinkCollection[i].className == “std_class”) {
myLinkCollection[i].onclick = function() {
this.style.backgroundColor = “#f00”;
}
}
}