The dragover
event is fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds).
The event is fired on the drop target(s).
Bubbles | Yes |
---|---|
Cancelable | Yes |
Default action | Reset the current drag operation to "none". |
Interface | DragEvent |
Event handler property | ondragover |
Examples
See the drag event for example code or this JSFiddle demo.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'dragover' 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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
dragover 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