Prototype Event.StopPropagation for IE >= 8

后端 未结 3 1849
遇见更好的自我
遇见更好的自我 2021-02-10 04:07

I understand the proper way to handle event.stopPropagation for IE is

if(event.stopPropagation) {
    event.stopPropagation();
} else {
    event.returnValue = f         


        
3条回答
  •  醉话见心
    2021-02-10 04:37

    We can use this alone: event.cancelBubble = true.

    Tested working in all browsers.

提交回复
热议问题