W3cubDocs

/HTML

dropzone (attribute)

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The dropzone global attribute is an enumerated attribute indicating what types of content can be dropped on an element, using the HTML Drag and Drop API. It can have the following values:

  • copy, which indicates that dropping will create a copy of the element that was dragged.
  • move, which indicates that the element that was dragged will be moved to this new location.
  • link, which will create a link to the dragged data.

Specifications

Specification Status Comment
HTML 5.1
The definition of 'dropzone' in that specification.
Recommendation Snapshot of HTML Living Standard, initial definition

Browser compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support ? — 58
Prefixed
? — 58
Prefixed
Prefixed Implemented with the vendor prefix: -webkit-
No No No No No
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support ? — 58
Prefixed
? — 58
Prefixed
Prefixed Implemented with the vendor prefix: -webkit-
? — 58
Prefixed
? — 58
Prefixed
Prefixed Implemented with the vendor prefix: -webkit-
No No No No Yes

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dropzone