Prototype Event.StopPropagation for IE >= 8

后端 未结 3 881
我寻月下人不归
我寻月下人不归 2021-02-10 03:38

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:39

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

    Tested working in all browsers.

提交回复
热议问题