HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
DOM Events❮ Event Objects : Events that occur when elements are dragged and/or dropped, belongs to the DragEvent Object."
Events that occur when elements are dragged and/or dropped, belongs to the DragEvent Object.
Property/Method | Description |
---|---|
dataTransfer | Returns the data that is dragged/dropped |
The DragEvent inherits all the properties and methods from:
These event types belongs to the DragEvent Object:
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 |