Sự kiện đầu vào DOM HTML
❮ Sự kiện DOM ❮ Đối tượng sự kiện
Đối tượng sự kiện đầu vào
Đối tượng inputEvent xử lý các sự kiện xảy ra khi một phần tử đầu vào bị thay đổi.
Sự kiện đầu vào
Event | Occurs When |
---|---|
oninput | The content (value) of an input element is changed |
Thuộc tính sự kiện đầu vào
Property | Returns |
---|---|
data | The inserted characters |
dataTransfer | An object containing information about the inserted/deleted data |
inputType | The type of the change (i.e "inserting" or "deleting") |
isComposing | If the state of the event is composing or not |
Phương thức sự kiện đầu vào
Method | Returns |
---|---|
getTargetRanges() | An array containing target ranges that will be affected by the insertion/deletion |
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ừ: