jQuery event.isImmediatePropagationStopped()Method

jQuery 事件方法jQuery Event Methods

Example

Check if event.stopImmediatePropagation() was called:

$("div").click(function(event){
    event.stopImmediatePropagation();
    alert(event.isImmediatePropagationStopped());
});

Try it Yourself »

Definition and Usage

This method checks whether, on the specified event, theevent.stopImmediatePropagation()method is called.

If event.stopImmediatePropagation() is called, this method returns true; otherwise, it returns false.


Syntax

event.isImmediatePropagationStopped()

Parameters Description
event Required.eventThe parameter comes from the event binding function.


jQuery 事件方法jQuery Event Methods

Other Extensions