HTML DOM FocusEvent
❮ เหตุการณ์ DOM ❮ วัตถุกิจกรรม
วัตถุโฟกัสเหตุการณ์
เหตุการณ์ที่เกิดขึ้นเมื่อองค์ประกอบได้รับหรือสูญเสียโฟกัส เป็นของ FocusEvent Object
คุณสมบัติและวิธีการ 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 |
❮ เหตุการณ์ DOM ❮ วัตถุกิจกรรม