此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
FocusEvent
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
构造器
FocusEvent()-
使用给定的参数创建
FocusEvent事件。
属性
此接口从它的父级继承了属性 UIEvent, 间接来自于 Event .
-
EventTarget这个代表此次事件的次要目标。在一些案例中,例如切换浏览器 tab 标签时,为了安全的原因,这个属性可能会被设置为null。
方法
规范
| Specification |
|---|
| UI Events> # interface-focusevent> |
浏览器兼容性
Enable JavaScript to view this browser compatibility table.
参见
Event基接口