jQuery event.isPropagationStopped() Method

jQuery Event Methods 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 jQuery Event Methods


SHARE THIS PAGE

COLOR PICKER

colorpicker





Search w3schools.com:

Translate w3schools.com: