HTML CSS JavaScript jQuery AJAX ASP PHP SQL tutorials, examples for web building ,author kapil kumar: How to Get mouse position using jquery

Saturday 10 May 2014

How to Get mouse position using jquery


Get mouse cursor x and y axis

This script will display the x and y value – the coordinate of the mouse pointer.
$().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> 

No comments:

Post a Comment