HTML DOM DragEvent
DragEvent Object
Events that occur when an element is being dragged and/or dropped belong to the DragEvent object.
Drag Event Properties and Methods
Property/Method | Description |
---|---|
dataTransfer | Returns the data being dragged. |
Inherited Properties and Methods
DragEvent inherits all properties and methods from the following objects:
Event Type
These event types belong to the DragEvent object:
Event | Description |
---|---|
ondrag | This event occurs when an element is being dragged. |
ondragend | This event occurs when the user finishes dragging the element. |
ondragenter | This event occurs when the dragging element enters the drop target. |
ondragleave | This event occurs when the dragging element leaves the drop target. |
ondragover | This event occurs when the dragging element is above the drop target. |
ondragstart | This event occurs when the user starts dragging the element. |
ondrop | This event occurs when the dragging element is placed on the drop target. |