HTML dropzone attribute

HTML 全局属性HTML Global Attributes

Example

Dragging data will cause the dragged data to produce a copy:

<div dropzone="copy"></div>


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

No major browsers support the dropzone attribute.


Definition and Usage

The dropzone attribute specifies whether the dragged data is copied, moved, or linked when it is dropped on an element.


Differences between HTML 4.01 and HTML5

The dropzone attribute is a new attribute in HTML5.


Syntax

<element dropzone="copy|move|link">

Attribute Values

Value Description
copy Dragging data will cause the dragged data to produce a copy.
move Dragging data will cause the dragged data to move to a new location.
link Dragging data will generate a link to the original data.


HTML 全局属性HTML Global Attributes Other Extensions