- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to set whether the dragged data is copied, moved, or linked, when dropped in HTML?
Use the dropzone attribute to set whether the dragged data is copied, moved or linked.
- Copy − The drop will create a copy of the dragged element.
- Move − The dragged element will get moved to the new location.
- Link − It creates a link to the dragged data
Try the following to work with dropzone attribute in JavaScript −
<div dropzone="copy"> </div>
None of the browsers supports this attribute now.
- Related Articles
- Execute a script when the dragged element is being dropped in HTML?
- Which event occurs in JavaScript when a dragged element is dropped?
- Execute a script when the element is being dragged in HTML?
- How to set whether an element is draggable or not in HTML?
- Execute a script when the content of the element is being copied in HTML?
- Set where to send the form-data when a form is submitted in HTML?
- Set the language of the linked document in HTML
- Execute a script when an element is being dragged over a valid drop target in HTML?
- Execute a script when an element has been dragged to a valid drop target in HTML?
- Which event occurs in JavaScript when the dragged element is over the target?
- Which event occurs in JavaScript when an element is content is copied to clipboard?
- Check whether the length of given linked list is Even or Odd in Python
- Which event occurs in JavaScript when an element is dragged completely?
- Which event occurs in JavaScript when an element is getting dragged?
- How to specify where to send the form-data when a form is submitted in HTML?

Advertisements