HTML DOM DragEvent
❮ Sự kiện DOM ❮ Đối tượng sự kiện
Đối tượng DragEvent
Các sự kiện xảy ra khi các phần tử được kéo và / hoặc thả, thuộc về Đối tượng DragEvent.
Thuộc tính và phương thức DragEvent
Property/Method | Description |
---|---|
dataTransfer | Returns the data that is dragged/dropped |
Thuộc tính và phương thức kế thừa
DragEvent kế thừa tất cả các thuộc tính và phương thức từ:
Các loại sự kiện
Các loại sự kiện này thuộc về Đối tượng 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 |
❮ Sự kiện DOM ❮ Đối tượng sự kiện