W3cubDocs

/Web APIs

Document: dragover event

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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
dragover_event
4
12
3.5
10
12
3.1
No
No
No
No
11
No

See also

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Document/dragover_event