Tutorials References Exercises
Log in
Buy Courses

jQuery event.isPropagationStopped() Method

❮ jQuery Event Methods

Example

Check if event.stopPropagation() was called:

$("div").click(function(event){
  event.stopPropagation();
  alert(event.isPropagationStopped());
});
Try it Yourself »

Definition and Usage

The event.isPropagationStopped() method checks whether event.stopPropagation() was called for the event.

This method returns true if event.stopPropagation() is called, and false if not.


Syntax

event.isPropagationStopped()

Parameter Description
event Required. The event parameter comes from the event binding function

❮ jQuery Event Methods