--- title: focusin slug: Web/API/Element/focusin_event translation_of: Web/API/Element/focusin_event original_slug: Web/Events/focusin ---

L'événement focusin est déclenché lorsqu'un élément est sur le point de recevoir le focus. La principale différence avec focus est que focusin se propage.

Informations générales

Spécification
DOM L3
Interface
{{domxref("FocusEvent")}}
Propagation
Oui
Annulable
Non
Cible
{{domxref("Element")}}
Action par défaut
Aucune

Propriétés

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.

Compatibilité navigateur

{{CompatibilityTable}}

Navigateur Chrome Firefox (Gecko) Internet Explorer Opera Safari
Support basique {{CompatVersionUnknown}} {{CompatNo}}[1] {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
Navigateur Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Support basique {{CompatVersionUnknown}} {{CompatNo}}[1] {{CompatVersionUnknown}} {{CompatUnknown}} {{CompatVersionUnknown}}

[1] Cet événement n'est pas encore supporté par Firefox, voir {{Bug("687787")}}. Il est possible d'utiliser l'événement focus à la place, qui est aussi compatible avec la délégation d'événements.

Evénements liés