event.isImmediatePropagationStopped() Method - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:event.isImmediatePropagationStopped


This method checks whether the event.stopImmediatePropagation() was called.


Parameter RequireDescription
event Required. The event parameter comes from the event binding function

The following code shows how to Check if event.stopImmediatePropagation() was called:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    event.stopImmediatePropagation();//from  w  w  w .  ja  va 2  s. c om
    console.log("Was event.stopImmediatePropagation() called: " +  event.isImmediatePropagationStopped());

<div style="height:100px;width:300px;padding:10px;border:1px solid blue;background-color:lightblue;">Click on this div element.</div>


Related Tutorials