English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML dropzone-Eigenschaft

Die globale Eigenschaft von dropzone ist ein Enum-Eigenschaft, die angibt, welche Inhaltstypen in ein Element gezogen und abgelegt werden können. Mit dem Drag and Drop API kann es folgende Werte haben: 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 position. link, it creates a link to the dragged data.

HTML-Globale Attribute

Online Example

Dragging data will create a copy of the dragged data:

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

Browser Compatibility

IEFirefoxOperaChromeSafari

The dropzone attribute is not supported by any mainstream browsers.

Definition and Usage

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

HTML 4.01 with HTML5difference

The dropzone attribute is an HTML5 of the new attribute.

Syntax

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

Attribute Value

ValueDescription
copyDragging data will create a copy of the dragged data.
moveDragging data will move the dragged data to a new position.
linkDragging data will generate links to the original data.


HTML-Globale Attribute