एचटीएमएल डोम इनपुटइवेंट
इनपुटइवेंट ऑब्जेक्ट
घटनाएँ जो तब होती हैं जब किसी प्रपत्र तत्व की सामग्री में परिवर्तन होता है, वह 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 इन सभी गुणों और विधियों को इनहेरिट करता है:
घटना के प्रकार
ये ईवेंट प्रकार इनपुटइवेंट ऑब्जेक्ट से संबंधित हैं:
Event | Description |
---|---|
oninput | The event occurs when an element gets user input |