HTML DOM FocusEvent
❮ Sự kiện DOM ❮ Đối tượng sự kiện
Đối tượng FocusEvent
Các sự kiện xảy ra khi các phần tử lấy hoặc mất tiêu điểm, thuộc về Đối tượng FocusEvent.
Thuộc tính và phương pháp FocusEvent
Property/Method | Description |
---|---|
relatedTarget | Returns the element related to the element that triggered the event |
Thuộc tính và phương thức kế thừa
FocusEvent kế thừa tất cả các thuộc tính và phương thức từ:
Các loại sự kiện
Các loại sự kiện này thuộc về Đối tượng 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 |
❮ Sự kiện DOM ❮ Đối tượng sự kiện