HTML DOM InputEvent
❮ เหตุการณ์ DOM ❮ วัตถุกิจกรรม
วัตถุ InputEvent
เหตุการณ์ที่เกิดขึ้นเมื่อเนื้อหาขององค์ประกอบฟอร์มเปลี่ยนแปลง เป็นของ InputEvent Object
คุณสมบัติและวิธีการ InputEvent
Property/Method | Description |
---|---|
data | Returns the inserted characters |
dataTransfer | Returns an object containing information about the inserted/deleted data |
getTargetRanges() | Returns an array containing target ranges that will be affected by the insertion/deletion |
inputType | Returns the type of the change (i.e "inserting" or "deleting") |
isComposing | Returns whether the state of the event is composing or not |
คุณสมบัติและวิธีการที่สืบทอดมา
InputEvent สืบทอดคุณสมบัติและวิธีการทั้งหมดจาก:
ประเภทงาน
ประเภทเหตุการณ์เหล่านี้เป็นของ InputEvent Object:
Event | Description |
---|---|
oninput | The event occurs when an element gets user input |
❮ เหตุการณ์ DOM ❮ วัตถุกิจกรรม