Drag and drop in the HTML5

Source: Internet
Author: User

(1) Implementing drag-and-drop in HTML5 requires setting the "draggable" property of the target element to "true";

(2) Related events that are triggered when the element is dropped:

a:dragstart--is triggered when a drag-and-drop element is started (Event body: Drag-and-drop element);

b:drag--is dragging and dropping element trigger (event Body: Drag and drop Element);

c:dragenter--is triggered by a drag element into an element (event body: Pass/target Element);

d:dragover--is triggered when the dragged element moves within an element (event body: Pass/target Element);

e:dragleave--is triggered when the element is dragged away from the target element (event body: target element);

f:drop--is triggered after the target element has fully received the dragged element (event body: target element);

g:dragend--action at the end of the entire drag-and-drop operation (event body: Drag-and-drop object element);

Drag and drop in the HTML5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.