I\'m currently implementing a small demo app trying to get my head around drag and drop with HTML5. What I\'m trying to do at the moment is getting the position of the cursor wh
document.ondragover = function(evt) { evt = evt || window.event; var x = evt.pageX, y = evt.pageY; console.log(x, y); }
jsFiddle.
If you were using jQuery...
$(document).on('dragover', function(evt) { var x = evt.pageX, y = evt.pageY; console.log(x, y); });