FocusEvent

您正在阅读此内容的英文版本,因为该语系尚未翻译。 帮助我们翻译此文章吧!

FocusEvent 接口表示和焦点相关的事件比如 focus, blur, focusin, 和 focusout

构造器

FocusEvent()
使用给定的参数创建 FocusEvent 事件。

属性

This interface also inherits properties from its parent UIEvent, and indirectly from Event.

FocusEvent.relatedTarget 只读
Is an EventTarget representing a secondary target for this event. In some cases (such as when tabbing in or out a page), this property may be set to null for security reasons.

方法

This interface has no specific methods. It inherits methods from its parent UIEvent, and indirectly from Event.

规范

规范 状态 备注
UI Events
FocusEvent
Working Draft
Document Object Model (DOM) Level 3 Events Specification
FocusEvent
Obsolete Initial definition.

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
FocusEvent
Experimental
Chrome Full support YesEdge Full support YesFirefox Full support 24IE Full support 9Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 24Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
FocusEvent() constructor
Experimental
Chrome Full support YesEdge Full support YesFirefox Full support 24IE No support NoOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 24Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
relatedTarget
Experimental
Chrome Full support YesEdge Full support 12Firefox Full support 48IE Full support 9Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 48Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

参见