Latest web development tutorials

jQuery event.isPropagationStopped () method

jQuery Event Methods jQuery Event Methods

Examples

Check event.stopPropagation () is called if:

$("div").click(function(event){
    event.stopPropagation();
    alert(event.isPropagationStopped());
});

try it"

Definition and Usage

whether to call on event.isPropagationStopped () method checks the specified event event.stopPropagation () .

If event.stopPropagation () is called, the method returns true, otherwise returns false.


grammar

event.isPropagationStopped()

参数 描述
event 必需。 event 参数来自事件绑定函数。


jQuery Event Methods jQuery Event Methods