Nossos voluntários ainda não traduziram este artigo para o Português (do Brasil). Junte-se a nós e ajude-nos a fazer o trabalho!
Você também pode ler o artigo em English (US).

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

The FocusEvent interface represents focus-related events like focus, blur, focusin, or focusout.

Constructor

FocusEvent()
Creates a FocusEvent event with the given parameters.

Properties

Inherits properties from its parent UIEvent, and indirectly from Event.

FocusEvent.relatedTarget Read only
Is an EventTarget representing a secondary target for this event. As in some cases (like when tabbing in or out a page), this property may be set to null for security reasons.

Methods

No specific method; inherits methods from its parent UIEvent, and indirectly from Event.

Specifications

Specification Status Comment
Document Object Model (DOM) Level 3 Events Specification
The definition of 'FocusEvent' 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 24IE Full support 9Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 24Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?
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 YesEdge Mobile 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 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
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

See also

  • The Event base interface.

Etiquetas do documento e colaboradores

Colaboradores desta página: fscholz, danielnixon, erikadoyle, teoli, kscarfone
Última atualização por: fscholz,