HTML DOM 드래그 이벤트
DragEvent 객체
요소를 드래그 및/또는 드롭할 때 발생하는 이벤트는 DragEvent 개체에 속합니다.
DragEvent 속성 및 메서드
Property/Method | Description |
---|---|
dataTransfer | Returns the data that is dragged/dropped |
상속된 속성 및 메서드
DragEvent는 다음에서 모든 속성과 메서드를 상속합니다.
이벤트 유형
다음 이벤트 유형은 DragEvent 개체에 속합니다.
Event | Description |
---|---|
ondrag | The event occurs when an element is being dragged |
ondragend | The event occurs when the user has finished dragging an element |
ondragenter | The event occurs when the dragged element enters the drop target |
ondragleave | The event occurs when the dragged element leaves the drop target |
ondragover | The event occurs when the dragged element is over the drop target |
ondragstart | The event occurs when the user starts to drag an element |
ondrop | The event occurs when the dragged element is dropped on the drop target |