0
Why my dragging is not working
2 Respostas
+ 5
"drags", "drag" and "drop" functions are not global: they are only available in the window.onload scope.
Remove window.onload, you don't need it in this case.
The target element (div) should be the one listening for the drop event, not the dragged element (img).
I am using my phone at the moment so I cannot test the code further.
+ 1
Tysm