HTML DOM InputEvent
كائن InputEvent
الأحداث التي تحدث عندما يتغير محتوى عنصر النموذج ، تنتمي إلى كائن InputEvent.
خصائص وطرق 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:
Event | Description |
---|---|
oninput | The event occurs when an element gets user input |