Answers for "addeventlistener events"

17

javascript addeventlistener

var element = document.getElementById("#id");
element.addEventListener('click', function(){
	console.log("click");
});
Posted by: Guest on May-20-2020
7

js addeventlistener

document.getElementById("example").addEventListener('click', function() {
  alert('Click');
});
Posted by: Guest on May-02-2021

Code answers related to "addeventlistener events"

Code answers related to "Javascript"

Browse Popular Code Answers by Language