Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

event delegation in javascript

Event Delegation is basically a pattern to handle events efficiently. Instead of adding an event listener to each and every similar element, we can add an event listener to a parent element and call an event on a particular target using the .target property of the event object.
 
PREVIOUS NEXT
Tagged: #event #delegation #javascript
ADD COMMENT
Topic
Name
8+3 =