function doSomething (e) {
var event = e || window.event;
[body of event handler function goes here]
if (event.stopPropagation) {
event.stopPropagation();
} else {
event.cancelBubble = true;
}
}
Stop event propagation (stop an event from bubbling up)
Category: Uncategorized |
Tags: bubbing, bubble, DOM, eventhandlers, events, interaction, ppk, propagation, quirksmode
Leave a Reply
You must be logged in to post a comment.