此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
focusout
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
当元素即将失去焦点时,focusout 事件被触发。focusout 事件和blur 事件之间的主要区别在于后者不会冒泡。
In this article
基本信息
属性
| 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> |