最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

cancelBubble Property

Internet Development Index

Sets or retrieves whether the current event should bubble up the hierarchy of event handlers.

Syntax

event.cancelBubble [ = bCancel ]

Possible Values

bCancelBoolean that specifies or receives one of the following values.
falseDefault. Bubbling is enabled, allowing the next event handler in the hierarchy to receive the event.
trueBubbling is disabled for this event, preventing the next event handler in the hierarchy from receiving the event.

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">
function checkCancel()
{
if (window.event.shiftKey)
window.event.cancelBubble = true;
}
function showSrc()
{
if (window.event.srcElement.tagName == "IMG")
alert(window.event.srcElement.src);
}
</SCRIPT>
<BODY onclick="showSrc()">
<IMG onclick="checkCancel()" SRC="sample.gif">

Standards Information

There is no public standard that applies to this property.

Applies To

event
安宁市| 和静县| 酒泉市| 岐山县| 正阳县| 金溪县| 西宁市| 襄汾县| 维西| 镶黄旗| 阜城县| 聊城市| 银川市| 金寨县| 梁平县| 安康市| 呼伦贝尔市| 长垣县| 银川市| 客服| 海安县| 泰安市| 筠连县| 昭平县| 云龙县| 云霄县| 舟山市| 蓬莱市| 故城县| 金塔县| 兴仁县| 南宁市| 郸城县| 莱芜市| 开原市| 乐安县| 应城市| 赤水市| 庄浪县| 丰顺县| 博湖县|