HTML DOM InputEvent
❮ Sự kiện DOM ❮ Đối tượng sự kiện
Đối tượng InputEvent
Các sự kiện xảy ra khi nội dung của phần tử biểu mẫu thay đổi, thuộc về Đối tượng InputEvent.
Thuộc tính và phương thức 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 |
Thuộc tính và phương thức kế thừa
InputEvent 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 InputEvent:
Event | Description |
---|---|
oninput | The event occurs when an element gets user input |
❮ Sự kiện DOM ❮ Đối tượng sự kiện