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