HTML DOM 입력 이벤트
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 |