Question: I would like to get current mouse position but I don't want to use:

```
$(document).bind('mousemove',function(e){ 
        $("#log").text("e.pageX: " + e.pageX + ", e.pageY: " + e.pageY); 
}); 

```

because I just need to get the position and process the information

Answer: 
Moreover, `mousemove` events are not triggered if you perform drag'n'drop over a browser window.
To track mouse coordinates during drag'n'drop you should attach handler for `document.ondragover` event and use it's originalEvent property.

*Example:*

```
var globalDragOver = function (e)
{
    var original = e.originalEvent;
    if (original)
    {
        window.x = original.pageX;
        window.y = original.pageY;
    }
}

```
I came across this, tot it would be nice to share...

What do you guys think?

```
$(document).ready(function() {
  window.mousemove = function(e) {
    p = $(e).position();  //remember $(e) - could be any html tag also.. 
    left = e.left;        //retrieving the left position of the div... 
    top = e.top;          //get the top position of the div... 
  }
});

```

and boom, there we have it..