HTML DOM FocusEvent
❮ Wydarzenia DOM ❮ Obiekty zdarzeń
Obiekt FocusEvent
Zdarzenia, które występują, gdy elementy stają się lub tracą fokus, należą do obiektu FocusEvent.
Właściwości i metody FocusEvent
Property/Method | Description |
---|---|
relatedTarget | Returns the element related to the element that triggered the event |
Dziedziczone właściwości i metody
FocusEvent dziedziczy wszystkie właściwości i metody z:
Rodzaje wydarzeń
Te typy zdarzeń należą do obiektu 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 |
❮ Wydarzenia DOM ❮ Obiekty zdarzeń