Posted By

ivang on 10/17/08


Tagged

event bubbling


Versions (?)

Javascript Cancel bubbling event


 / Published in: JavaScript
 

  1. function cancelBubbling(e){
  2. if(!e) e = window.event;
  3. e.cancelBubble = true;
  4. if(e.stopPropagation) e.stopPropagation();
  5. }

Report this snippet  

You need to login to post a comment.