Get xy coordinates for html5 drop event

with dragging and dropping html5, how do I get the x and y position where the item was deleted during the drop event? I need to dynamically create and display an image and a popup at this moment ... without using canvas

+3
source share
1 answer

Use the standard clientX and clientY properties:

function onDrop(ev) {
    window.alert( ev.clientX + ',' + ev.clientY);
    ev.stopPropagation();
    return false;
}
+1
source

All Articles