elibraryportal Logo

HTML Drag and Drop

It is a powerful user interface concept which is used to copy, reorder and delete items. You can hold the mouse button down over an element and drag it to another location.

Events for Drag and Drop feature:-

  • Drag:- It fires every time when the mouse is moved while the object is being dragged.
  • Dragstart:- It is a very initial stage. It fires when the user starts dragging object.
  • Dragenter:- It fires when the user moves his/her mouse cursur over the target element.
  • Dragover:- This event is fired when the mouse moves over an element.
  • Dragleave:- This event is fired when the mouse leaves an element.
  • Drop :- Drop It fires at the end of the drag operation.
  • Dragend:- It fires when user releases the mouse button to complete the drag operation.



Test it Now
Next TopicHTML google