HTML | ondragleave Event Attribute
The ondragleave attribute works when a draggable element or text selection leaves a valid drop target. It helps in dragging the elements and is entering or leaving a drop target. Drag and drop feature is very popular in HTML 5. Use CSS property when the element is draggable and enter into the drop target.
Supported Tags: It supports all HTML rags.
<element ondragleave = "script">
Attribute Value: The ondragleave event attribute contains single value script which works when ondragleave event called.
Note: Images and links are by default draggable.
Supported Browsers: The browser supported by ondragleave event attributes are listed below:
- Google Chrome 1.0
- Edge 12.0
- Internet Explorer 9.0
- Mozilla Firefox 9.0
- Safari 3.1
- Opera 12.0