English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The global attribute of dropzone is an enum attribute that indicates what content type can be dropped onto an element. Using Drag and Drop API, it can have the following values: copy, it indicates that the drag-and-drop action will create a copy of the dragged element. move, it indicates that the dragged element will move to a new location. link, it will create a link to the dragged data.
Dragging data will create a copy of the dragged data:
<div dropzone="copy"></div>
IEFirefoxOperaChromeSafari
The dropzone attribute is not supported by any mainstream browsers.
The dropzone attribute specifies whether the dragged data is copied, moved, or linked when it is dropped onto an element.
The dropzone attribute is an HTML5 of the new attribute.
<element dropzone="copy|move|link">
Value | Description |
---|---|
copy | Dragging data will create a copy of the dragged data. |
move | Dragging data will move the dragged data to a new location. |
link | Dragging data will generate links to the original data. |