Document: dragleave event

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


See the drag event for example code or this JSFiddle demo.


Specification Status Comment
HTML Living Standard
The definition of 'dragleave' in that specification.
Living Standard

Browser compatibility

BCD tables only load in the browser

See also