The dragleave event is fired when a dragged element or text selection leaves a valid drop target.
| Bubbles | Yes |
|---|---|
| Cancelable | No |
| Default action | None. |
| Interface | DragEvent |
| Event handler property | ondragleave |
Examples
See the drag event for example code or this JSFiddle demo.
Specifications
| Specification | Status | Comment |
|---|---|---|
| HTML Living Standard The definition of 'dragleave' 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
dragleave 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
