Acara Fokus DOM HTML
Objek FocusEvent
Peristiwa yang terjadi saat elemen mendapatkan atau kehilangan fokus, termasuk dalam Objek FocusEvent.
Properti dan Metode FocusEvent
Property/Method | Description |
---|---|
relatedTarget | Returns the element related to the element that triggered the event |
Properti dan Metode yang Diwarisi
FocusEvent mewarisi semua properti dan metode dari:
Jenis Acara
Jenis acara ini milik Objek 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 |