Skip to content



stopPropagation() and preventDefault() in JavaScript

In this article, we’ll see what is stopPropagation and preventDefault in JavaScript.

In the previous blog post, we looked at what event bubbling is and how we can implement it. If you are unaware of what event bubbling is please take a look at my blog post.

To understand stopPropagation and preventDefault in JavaScript, you need a basic understanding of event bubbling.

Read More »stopPropagation() and preventDefault() in JavaScript

What is Event Bubbling in JavaScript

what is event bubbling? How does event bubbles up? In this post, I’ll explain
how event bubbling happens and how to achieve event bubbling with JavaScript
and jQuery using event delegation. Event delegation is the implementation of
event bubbling.