Subscribe For Free Updates!

We'll not spam mate! We promise.

Feb 23, 2013

JavaScript to find Mouse cursor X and Y axis value


In javascript we can find the mouse cursor points - the coordinate of the mouse pointer by using the following javascript function.

$().mousemove(function(e){
$('div').html("X Axis : " + e.pageX + " | Y Axis " + e.pageY);
});
</script>
<div>
</div>

The above function display the x and y axis values inside the div element.
In some browser need jquery.js file .. This file is available in many websites.

TechniqZone Socializer Widget
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 comments:

Post a Comment