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

Manual de referência HTML

大全 de etiquetas HTML

A propriedade dropzone do HTML

A propriedade global dropzone é uma propriedade enumerativa que indica qual tipo de conteúdo pode ser arrastado e soltado em um elemento, usando o API Drag and Drop, pode ter os seguintes valores: 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 creates a link to the dragged data.

Atributos Globais do HTML

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 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 location.
linkDragging data will generate links to the original data.


Atributos Globais do HTML