Posts by Élison Ocampos • 21 points
1 post
-
2
votes4
answers17179
viewsA: How to know if an element was clicked using pure Javascript
If you catch several div with document.getElementByTagName(), then you create a for to add to each element a click event with the addEventListener(). The clicked element will be referenced to the…