Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

event listener javascript

const element = document.querySelector(".class__name");

element.addEventListener("click", () => {
	console.log("clicked element");
});
 
PREVIOUS NEXT
Tagged: #event #listener #javascript
ADD COMMENT
Topic
Name
8+8 =