$(document).ready(function() { $().mousemove(function(e) { $('p').html("X Axis : " + e.pageX + " | Y Axis " + e.pageY); }); });
Source
Its probably worth mentioning that e.clientX and e.clientY will give you the X and Y of the viewport.
Its probably worth mentioning that e.clientX and e.clientY will give you the X and Y of the viewport.
ReplyDelete