HTML DOM:哪些事件不会冒泡? [英] HTML DOM: Which events do not bubble?

查看:36
本文介绍了HTML DOM:哪些事件不会冒泡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大多数事件在所有浏览器中都会冒泡.但是,我知道在 Internet Explorer 中提交"事件不会冒泡.还有哪些不冒泡的事件?

Most events bubble in all browsers. However, I know that in Internet Explorer "submit" events do not bubble. What are the other events that do not bubble?

推荐答案

任何特定于一个元素的事件都不会冒泡:focus、blur、load、unload、change、reset、scroll、大多数 DOM 事件(DOMFocusIn、DOMFocusOut、DOMNodeRemoved 等)、mouseenter、mouseleave 等

Any events specific to one element do not bubble: focus, blur, load, unload, change, reset, scroll, most of the DOM events (DOMFocusIn, DOMFocusOut, DOMNodeRemoved, etc), mouseenter, mouseleave, etc

这篇关于HTML DOM:哪些事件不会冒泡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆