FocusEvent.relatedTarget

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The FocusEvent.relatedTarget read-only property represents a secondary target for this event, which will depend on the event itself. In some cases (like when tabbing in or out of a page), this property may be set to null for security reasons.

Syntax

secondTarget = focusEvent.relatedTarget

Specifications

Specification Status Comment
Document Object Model (DOM) Level 3 Events Specification
The definition of 'FocusEvent.relatedTarget' in that specification.
Obsolete Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic support
Experimental
Chrome Full support YesEdge Full support YesFirefox Full support 48IE Full support 9Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 48Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?

Legend

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

See also

Document Tags and Contributors

Last updated by: fscholz,