Return to Snippet

Revision: 3739
at September 9, 2007 10:54 by fael


Initial Code
function stop(e) {
   if (!e) e = window.event;
   (e.stopPropagation) ? e.stopPropagation() : e.cancelBubble = true;
   (e.preventDefault) ? e.preventDefault() : e.returnValue = false;
   return false;
}

Initial URL

                                

Initial Description
Really stop default action of a element.

Initial Title
Stop default action

Initial Tags
event, window

Initial Language
JavaScript