jQuery event.isPropagationStopped() method
Example
Check whether event.stopPropagation() was called:
$("div").click(function(event){
event.stopPropagation();
alert(event.isPropagationStopped());
});
Try it »
Definition and Usage
The event.isPropagationStopped() method checks whether event.stopPropagation().
This method returns true if event.stopPropagation() was called, otherwise false.
Syntax
event
.isPropagationStopped()
| Parameters | Description |
|---|---|
| event | Required.event The parameters come from the event binding function. |
jQuery event methods