MDN wants to talk to developers like you: https://qsurvey.mozilla.com/s3/a3e7b5301fea

focusin

当元素即将接收 focus 事件时,focusin 事件被触发。 这个事件和 focus 事件的主要区别在于后者不会冒泡。

基本信息

Specification
DOM L3
Interface
FocusEvent
Bubbles
Yes
Cancelable
No
Target
Element
Default Action
None.

属性

Property Type Description
target 只读 EventTarget event target receiving 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 losing focus (if any).

浏览器兼容性

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) 52 (52) (Yes) (Yes) (Yes)
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) 52.0 (52) (Yes) ? (Yes)

相关事件

文档标签和贡献者

 此页面的贡献者: liuhe
 最后编辑者: liuhe,