HTML DOM FocusEvent
❮ События ДОМ ❮ Объекты событий
Объект FocusEvent
События, происходящие, когда элементы получают или теряют фокус, относятся к объекту FocusEvent.
Свойства и методы FocusEvent
Property/Method | Description |
---|---|
relatedTarget | Returns the element related to the element that triggered the event |
Унаследованные свойства и методы
FocusEvent наследует все свойства и методы от:
Типы событий
Эти типы событий принадлежат объекту FocusEvent:
Event | Description |
---|---|
onblur | The event occurs when an element loses focus |
onfocus | The event occurs when an element gets focus |
onfocusin | The event occurs when an element is about to get focus |
onfocusout | The event occurs when an element is about to lose focus |
❮ События ДОМ ❮ Объекты событий