How to stop event propagation with inline onclick attribute?

前端 未结 13 2401
情书的邮戳
情书的邮戳 2020-11-21 23:46

Consider the following:

13条回答
  •  暖寄归人
    2020-11-22 00:48

    Use event.stopPropagation().

    something inside the header
    

    For IE: window.event.cancelBubble = true

    something inside the header
    

提交回复
热议问题