Get mouse cursor x and y axis with jQuery

[javascript]
$().mousemove(function(e){
//display the x and y axis values inside the P element
$(‘p’).html("X Axis : " + e.pageX + " | Y Axis " + e.pageY);
});

<p></p>
[/javascript]

Leave a Reply