focusin
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since март 2017 г..
Событие focusin срабатывает, когда элемент получает фокус. Главное отличие от focus в том, что последний не всплывает.
Общая информация
- Specification
- Interface
FocusEvent- Bubbles
-
Yes
- Cancelable
-
No
- Target
-
Element
- Default Action
-
None.
Свойства
| Property | Type | Description |
|---|---|---|
target Только для чтения |
EventTarget |
Event target losing focus. |
type Только для чтения |
String |
The type of event. |
bubbles Только для чтения |
Boolean |
Whether the event normally bubbles or not. |
cancelable Только для чтения |
Boolean |
Whether the event is cancellable or not. |
relatedTarget Только для чтения |
EventTarget (DOM element) |
Event target receiving focus. |