Forum Moderators: open
<script>
// at the top of the page
document.addEventListener("some_event", function(e) {
if (e.stopPropagation) e.stopPropagation();
e.cancelBubble = true;
}, false);</script> document.addEventListener("onfocusout", function(e) {
if (
// function does not equal 'click'; I think this catches 'touch' events, too
e != 'click' &&
// function is not the user pressing 'tab'
e.onkeydown != '[whatever the keycode is for "tab"]' &&
// the browser actually recognizes the stopPropagation() function
e.stopPropagation
) {
e.stopPropagation();
e.cancelBubble = true;
}
}, false);