Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets or retrieves whether the current event should bubble up the hierarchy of event handlers.
Syntax
event . cancelBubble [ = bCancel ]Possible Values
bCancel | Boolean that specifies or receives one of the following values.
|
The property is read/write. The property has a default value of false .
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties .
Remarks
Using this property to cancel bubbling for an event does not affect subsequent events.
Example
This example cancels bubbling of the onclick event if it occurs in the img object when the user presses the SHIFT key. This prevents the event from bubbling up to the onclick event handler for the document.
<SCRIPT LANGUAGE="JScript">
Standards Information
There is no public standard that applies to this property.
Applies To
|
event |
Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |