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

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes489 Yes Yes
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes48 Yes Yes ?

See also

Document Tags and Contributors

Last updated by: fscholz,