event.isImmediatePropagationStopped()
JQ Home <<
Objects <<
event.isImmediatePropagationStopped()
Event immediate propagation stopped checker method.
Description
The event.isImmediatePropagationStopped()
Event object method returns a boolean dependant upon event.stopImmediatePropagation()
ever being called on this event object.
Syntax
Signature | Description |
---|---|
event.isImmediatePropagationStopped() | Returns a boolean dependant upon event.stopImmediatePropagation() ever being called on this event object. |
Parameters
None.
Return
A Boolean
object.
event.isImmediatePropagationStopped()
Objects << Top
Return a boolean dependant upon event.stopImmediatePropagation() ever being called on this event object.
In the example below we show two new messages in the 'div' element with an id of 'div9' the first time the mouse is clicked on this element. One before event.stopImmediatePropagation()
has been called and one after.
$(function(){
$('#div9').one('click', function(event) {
$('#div9').append('Has event.stopImmediatePropagation()
been called on this event object? '
+ event.isImmediatePropagationStopped() + '<br/>');
event.stopImmediatePropagation();
$('#div9').append('Has event.stopImmediatePropagation()
been called on this event object? '
+ event.isImmediatePropagationStopped() + '<br/>');
});
});
div9. Some initial text.
Related Tutorials
jQuery Advanced Tutorials - Lesson 5 - The Event Object