--- title: focusin slug: Web/API/Element/focusin_event translation_of: Web/API/Element/focusin_event original_slug: Web/Events/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
DOM L3
Interface
{{domxref("FocusEvent")}}
Borbulha
Sim
Cancelável
Não
Alvo
Element
Ação Padrão
Nenhuma.

Propriedades

Property Type Description
target {{readonlyInline}} {{domxref("EventTarget")}} Event target losing focus.
type {{readonlyInline}} {{domxref("DOMString")}} The type of event.
bubbles {{readonlyInline}} {{jsxref("Boolean")}} Whether the event normally bubbles or not.
cancelable {{readonlyInline}} {{jsxref("Boolean")}} Whether the event is cancellable or not.
relatedTarget {{readonlyInline}} {{domxref("EventTarget")}} (DOM element) Event target receiving focus.

Compatibilidade com navegadores

{{CompatibilityTable}}

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatGeckoDesktop(52)}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatGeckoMobile(52)}} {{CompatVersionUnknown}} {{CompatUnknown}} {{CompatVersionUnknown}}

Eventos Relacionais