focusin

O evento focusin é acionado no momento em que o elemento receba o foco. A grande diferença entre esse evento e o evento focus, é que apenas o focusin delega o seu evento para o elemento pai (conhecido como bubbling ou deletegate).

Informações Gerais

Propriedades

Property Type Description
target Somente leitura EventTarget Event target losing focus.
type Somente leitura DOMString The type of event.
bubbles Somente leitura Boolean Whether the event normally bubbles or not.
cancelable Somente leitura Boolean Whether the event is cancellable or not.
relatedTarget Somente leitura EventTarget (DOM element) Event target receiving focus.

Especificações

Specification
UI Events
# event-type-focusin

Compatibilidade com navegadores

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
focusin event

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support

Eventos Relacionais