Get mouse cursor x and y axis with jQuery


Source Code:

<div class="mouse-position"></div>

<script>
$(document).ready(function() {
	$(document).mousemove(function( event ){
		$(".mouse-position").html("X Axis: " + event.pageX + "<br/>Y Axis: " + event.pageY);
	});
});
</script>

Buy us coffee

Reviews and Comments