focusin
Событие focusin срабатывает, когда элемент получает фокус. Главное отличие от focus
в том, что последний не всплывает.
Общая информация
- Specification
- Interface
FocusEvent
- Bubbles
-
Yes
- Cancelable
-
No
- Target
-
Element
- Default Action
-
None.
Свойства
Property | Type | Description |
---|---|---|
target Только для чтения |
EventTarget |
Event target losing focus. |
type Только для чтения |
DOMString |
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. |
Совместимость с браузерами
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.