HTML DOM DragEvent
The DragEvent Object
The DragEvent Object handles events that occur when elements are dragged or dropped.
Drag Events
Event | Occurs When |
---|---|
ondrag | An element is being dragged |
ondragend | A user has finished dragging an element |
ondragenter | A dragged element enters the drop target |
ondragleave | A dragged element leaves the drop target |
ondragover | A dragged element is over the drop target |
ondragstart | A user starts to drag an element |
ondrop | A dragged element is dropped on the target |
DragEvent Properties
Property | Returns |
---|---|
dataTransfer | The data that is dragged or dropped |
Inherited Properties and Methods
The DragEvent inherits all the properties and methods from:
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.