Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

addEventListener js

let element = document.getElementById(".class");
element.addEventListener('click', function(){
	console.log("click");
});
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #addEventListener #js
ADD COMMENT
Topic
Name
7+8 =