Answers for "how to detect clicks using javascript addeventlistener"

1

how to detect clicks with javascript

element.addEventListener('click', function () {
	alert('Clicked!')
});
Posted by: Guest on September-28-2020
0

how to detect clicks using javascript addeventlistener

var elem = element ;
elem.addEventListener('click'  , function (){
  console.log("Clicked");
});
Posted by: Guest on October-26-2021

Code answers related to "how to detect clicks using javascript addeventlistener"

Code answers related to "Javascript"

Browse Popular Code Answers by Language