当元素即将失去焦点时,focusout 事件被触发。focusout 事件和 blur 事件之间的主要区别在于后者不会冒泡。
基本信息
- Specification
- : DOM L3
- Interface
- : FocusEvent
- Bubbles
- : Yes
- Cancelable
- : No
- Target
- : Element
- Default Action
- : None.
属性
| Property | Type | Description |
|---|---|---|
target |
EventTarget | Event target losing focus. |
type |
String | The type of event. |
bubbles |
Boolean | Whether the event normally bubbles or not. |
cancelable |
Boolean | Whether the event is cancellable or not. |
relatedTarget |
EventTarget (DOM element) | Event target receiving focus. |
规范
浏览器兼容性
相关事件
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
