---
title: "Discussion on \"Event Bubbling, Capturing and Once in JavaScript.\" | Hashnode"
description: "Discussion on \"Event Bubbling, Capturing and Once in JavaScript.\". Event listeners add interactive functionality to the elements in our HTML which makes them a preffered method of handling events. But what exactly happens?\nWhen an element is clicked it triggers a response or an event in said element.  It notices the..."
url: "https://hashnode.com/posts/event-bubbling-capturing-and-once-in-javascript/6195fb190b25eb28701f58c1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Event Bubbling, Capturing and Once in JavaScript.](https://yuricodesbot.hashnode.dev/event-bubbling-capturing-and-once-in-javascript?utm_source=hashnode&utm_medium=feed)

Event listeners add interactive functionality to the elements in our HTML which makes them a preffered method of handling events. But what exactly happens? When an element is clicked it triggers a response or an event in said element. It notices the...

Nov 18, 2021 · 4 min read · yuricodesbot.hashnode.dev  
Updated Dec 29, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#developer](https://hashnode.com/tag/developer)

## Written by

[Yuri](https://hashnode.com/@YuriCodesBot)

@YuriCodesBot

  
[View profile](https://hashnode.com/@YuriCodesBot)

Twitter: @Yuricodesbot | Self/Community Taught | Writer | Let's learn together

I'm self/community-taught from Law to now Full-Stack Developer! Sharing my notes and knowledge hoping i help this lovely community. Learn with me! :)

## Responses 1

Markdown supported · ⌘↵ to post

[Sibusiso Dlamini](https://hashnode.com/@Sbu-05)

[Nov 20, 2021](https://hashnode.com/posts/event-bubbling-capturing-and-once-in-javascript/6195fb190b25eb28701f58c1/comment/6199624adf376a260c5894b6)

When would you want to stop an event from bubbling?

[Dec 5, 2021](https://hashnode.com/posts/event-bubbling-capturing-and-once-in-javascript/6195fb190b25eb28701f58c1/comment/6199624adf376a260c5894b6#reply-61ac3a8ca375fb2266f3da1c)

You sometimes might find yourself in the situation where you wouldn't want to trigger an unwanted event from a higher level. It's best to keep event handlers separated :)
