Sunday, 5 November 2017

Drag and Drop Events in HTML5

The drag and drop feature allows you to drag a textual data or an image from the source area to target on a Web page where source and target area can be two containers or text areas.

dragstart :- fires when you start dragging an object

drag :- fires every time when the mouse is moved to drag an object

dragenter :- fires when a draggable object is dragged inside an object

dragover :- fires every time a draggable object is moved inside an object

dragleave :- fires when a draggable object is dragged out from an object

drop:- fires when a draggable object is dropped into an object

dragend :- fires when you release the mouse button while dragging an object

No comments:

Post a Comment