event.pageX
The event.pageX
property in jQuery refers to coordinate of mouse relative to the left edge of the document.
event.pageX
property ExampleShow the mouse coordinates which are relative to the document, which in this case is the iframe.
$(document).bind('mousemove',function(e){ $("#log").text("e.pageX: " + e.pageX + ", e.pageY: " + e.pageY); });