Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

click tester

window.document.addEventListener('click', (e) => {
  if (e.target.className === 'task-delete') {
    alert('ss');
  }
  console.log(e.target.tagName);
});
 
PREVIOUS NEXT
Tagged: #click #tester
ADD COMMENT
Topic
Name
6+9 =