# Event delegation

**URL:** https://discourse.mozilla.org/t/event-delegation/85025
**Category:** Learn
**Created:** [August 25, 2021, 4:46am UTC](https://discourse.mozilla.org/t/event-delegation/85025 "2021-08-25T04:46:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nishi\_Paul](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@Nishi\_Paul](https://discourse.mozilla.org/u/Nishi_Paul)
#### Post date: [August 25, 2021, 4:46am UTC](https://discourse.mozilla.org/t/event-delegation/85025/1 "2021-08-25T04:46:46Z")

</div>

I haven’t understood the term properly. Can anyone please explain it to me with some examples.

---

<div class="post-metadata">

### Author: ![justsomeone](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/justsomeone/32/67787_2.png) [@justsomeone](https://discourse.mozilla.org/u/justsomeone)
#### Post date: [August 25, 2021, 5:40am UTC](https://discourse.mozilla.org/t/event-delegation/85025/2 "2021-08-25T05:40:25Z")

</div>

Hello @Nishi_Paul

did you checked this link it has good example

> **[Event Delegation](https://davidwalsh.name/event-delegate)**
>
> Event delegation allows you to avoid adding event listeners to specific nodes; instead, the event listener is added to one parent.

event delegation allow you if you have many element that share certain parent so instead of adding event listener to each child you only add single event listener to the parent while you still know which child trigger that event (as you know an event passed to the event listener )

the link show goo example and if you did not get it let me know to explain it in better way

and have a nice day 🙂
