I\'d like to be able to highlight the drop area as soon as the cursor carrying a file enters the browser window, exactly the way Gmail does it. But I can\'t make it work, an
Don't know it this works for all cases but in my case it worked very well
$('body').bind("dragleave", function(e) { if (!e.originalEvent.clientX && !e.originalEvent.clientY) { //outside body / window } });