HTML Event attribute: ondragend
[this page | pdf | back links]
The HTML ondragend attribute specifies the event
that is triggered at the end of a drag operation. It applies to all visible elements.
EXAMPLE:
HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body>
ondragend: try dragging and then finishing the drag of this
<span style="background-color: yellow;" ondragend="myOndragend()">element</span><br>
<script>
function myOndragend() {alert("Ending dragging element");}
</script>
</body>
</html>
|
NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes