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: 
You can't read mouse position in jQuery without using an event. Note firstly that the `event.pageX` and `event.pageY` properties exists on any event, so you could do:

```
$('#myEl').click(function(e) {
    console.log(e.pageX);
});

```

Your other option is to use a closure to give your whole code access to a variable that is updated by a mousemove handler:

```
var mouseX, mouseY;
$(document).mousemove(function(e) {
    mouseX = e.pageX;
    mouseY = e.pageY;
}).mouseover(); // call the handler immediately

// do something with mouseX and mouseY

```
```
var CurrentMouseXPostion;
var CurrentMouseYPostion;

$(document).mousemove(function(event) {
    CurrentMouseXPostion = event.pageX;
    CurrentMouseYPostion = event.pageY;
});

```

Make an eventListener on the main object , in my case the document object, to get the mouse coords every frame and store them in global variables, and like that you can read mouse Y & Z whenever youlike , wherever you like.