Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to detect clicks using javascript addeventlistener

var elem = element ;
elem.addEventListener('click'  , function (){
  console.log("Clicked");
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #detect #clicks #javascript #addeventlistener
ADD COMMENT
Topic
Name
1+7 =