jQuery event.isPropagationStopped() Method
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 |
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.