Prevent event bubbling

From , 2 Years ago, written in JavaScript, viewed 251 times.
URL https://pastebin.vip/view/d3957710
  1.  
  2.  
  3. function stopPropagation(e) {  
  4.     e = e || window.event;  
  5.     if(e.stopPropagation) { //W3C阻止冒泡方法  
  6.         e.stopPropagation();  
  7.     } else {  
  8.         e.cancelBubble = true; //IE阻止冒泡方法  
  9.     }  
  10. }  

Reply to "Prevent event bubbling"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website