--- title: focusin slug: Web/API/Element/focusin_event translation_of: Web/API/Element/focusin_event original_slug: Web/Events/focusin ---
Событие focusin срабатывает, когда элемент получает фокус. Главное отличие от focus
в том, что последний не всплывает.
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. |
{{Compat("api.Element.focusin_event")}}