Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1104113 of Event.stopImmediatePropagation()

  • Revision slug: Web/API/Event/stopImmediatePropagation
  • Revision title: Event.stopImmediatePropagation()
  • Revision id: 1104113
  • Created:
  • Creator: jwhitlock
  • Is current revision? Yes
  • Comment Revert to revision of 2016-02-23 18:46:08 by cvrebert: "Completely revert Korean translation of English page"

Revision Content

{{APIRef("DOM")}}

Prevents other listeners of the same event from being called.

Syntax

event.stopImmediatePropagation(); 

Notes

If several listeners are attached to the same element for the same event type, they are called in order in which they have been added. If during one such call, event.stopImmediatePropagation() is called, no remaining listeners will be called.

Specifications

Specification Status Comment
{{SpecName('DOM WHATWG', '#dom-event-stopimmediatepropagation', 'Event.stopImmediatePropagation()')}} {{Spec2('DOM WHATWG')}}  
{{SpecName('DOM4', '#dom-event-stopimmediatepropagation', 'Event.stopImmediatePropagation()')}} {{Spec2('DOM4')}} Initial definition

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatChrome("6.0")}} {{CompatGeckoDesktop("10.0")}} {{CompatIE(9.0)}} {{CompatOpera("15.0")}} {{CompatSafari("5.0")}}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}

Revision Source

<div>{{APIRef("DOM")}}</div>

<p>Prevents other listeners of the same event from being called.</p>

<h2 id="Syntax">Syntax</h2>

<pre class="eval">
<em>event</em>.stopImmediatePropagation(); 
</pre>

<h2 id="Notes">Notes</h2>

<p>If several listeners are attached to the same element for the same event type, they are called in order in which they have been added. If during one such call, <code>event.stopImmediatePropagation()</code> is called, no remaining listeners will be called.</p>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('DOM WHATWG', '#dom-event-stopimmediatepropagation', 'Event.stopImmediatePropagation()')}}</td>
   <td>{{Spec2('DOM WHATWG')}}</td>
   <td>&nbsp;</td>
  </tr>
  <tr>
   <td>{{SpecName('DOM4', '#dom-event-stopimmediatepropagation', 'Event.stopImmediatePropagation()')}}</td>
   <td>{{Spec2('DOM4')}}</td>
   <td>Initial definition</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatChrome("6.0")}}</td>
   <td>{{CompatGeckoDesktop("10.0")}}</td>
   <td>{{CompatIE(9.0)}}</td>
   <td>{{CompatOpera("15.0")}}</td>
   <td>{{CompatSafari("5.0")}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>
Revert to this revision