I'm trying to addclass to all elements at once using html dom. // No jquery
Here is what i tryed:
document.getElementsByTagName("*").classList.add('addedclassname');
I guess i could not select(get) all elements. Because this,
document.getElementById("id").classList.add('addedclassname');
was working.