JS停止冒泡
function myfn(e){ window.event? window.event.cancelBubble = true : e.stopPropagation(); }
js阻止默认行为
function myfn(e){ window.event? window.event.returnValue = false : e.preventDefault(); }
原文:
http://caibaojian.com/javascript-stoppropagation-preventdefault.html