focusout
当元素即将失去焦点时,focusout 事件被触发。focusout 事件和 blur 事件之间的主要区别在于后者不会冒泡。
基本信息
- Specification
- Interface
FocusEvent
- Bubbles
-
Yes
- Cancelable
-
No
- Target
-
Element
- Default Action
-
None.
属性
Property | Type | Description |
---|---|---|
target 只读 |
EventTarget |
Event target losing focus. |
type 只读 |
DOMString |
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. |
规范
Specification |
---|
UI Events # event-type-focusout |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
focusout event |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.