In HTML, how to set whether to copy, move or link when dragging and dropping data?

WBOY
Release: 2023-09-06 23:17:02
forward
593 people have browsed it

In HTML, how to set whether to copy, move or link when dragging and dropping data?

#Use the dropzone attribute to set whether the dragged data is copied, moved, or linked.

  • Copy - Drag-and-drop will create a copy of the dragged element.
  • Move - Dragging an element will move it to a new location.
  • Link - It creates a link to the drag data

Try the following to use the dropzone attribute in JavaScript -

<div dropzone="copy">
</div>
Copy after login

Now No browser supports this attribute.

The above is the detailed content of In HTML, how to set whether to copy, move or link when dragging and dropping data?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!