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
- Especificação
- Interface
FocusEvent
- Borbulha
-
Sim
- Cancelável
-
Não
- Alvo
-
Element
- Ação Padrão
-
Nenhuma.
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 GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
focusin event |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.