/ Published in: JavaScript
Really stop default action of a element.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function stop(e) { if (!e) e = window.event; (e.stopPropagation) ? e.stopPropagation() : e.cancelBubble = true; (e.preventDefault) ? e.preventDefault() : e.returnValue = false; return false; }