- DataTransfer object: The medium that the object is used to pass, used generally as event.datatransfer.
- Draggable Property: is the label element to set the draggable=true, otherwise there will be no effect, for example:
<div title= "Drag Me" draggable= "true" > List 1</div>
- Ondragstart Event: An event that is triggered when a drag element starts being dragged, and this event acts on the dragged element
- OnDragEnter Event: An event that fires when a dragged element enters the target element, which acts on the target element
- OnDragOver Event: An event that is triggered when a drag element is moved on the target element, which acts on the target element
- OnDrop event: The dragged element on the target element with the mouse release of the triggered event, which acts on the target element
- Ondragend Event: An event triggered when a drag is completed, which acts on the dragged element
- Event.preventdefault () Method: Prevents execution of the default event methods. Be sure to perform preventdefault () in OnDragOver,
- Otherwise the OnDrop event will not be triggered. In addition, if you are dragging things in from other applications or files, especially pictures,
- The default action is to display the image or related information, not to actually perform the drop. At this point, you need to use the document OnDragOver event to kill it directly.
- Event.effectallowed property: Is the effect of drag and drop.
HTML5 drag-and-drop API (related focus)