The drop
event is fired when an element or text selection is dropped on a valid drop target.
Bubbles | Yes |
---|---|
Cancelable | Yes |
Default action | Varies |
Interface | DragEvent |
Event handler property | ondrop |
Examples
See the drag event for example code or this JSFiddle demo.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'drop event' in that specification. |
Living Standard |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
drop event | Chrome Full support 4 | Edge Full support 12 | Firefox Full support 3.5 | IE Full support 10 | Opera Full support 12 | Safari Full support 3.1 | WebView Android No support No | Chrome Android No support No | Firefox Android No support No | Opera Android No support No | Safari iOS Full support 11 | Samsung Internet Android No support No |
Legend
- Full support
- Full support
- No support
- No support