jQuery Tutorial Tutorials - jQuery event.pageX

jQuery event.pageX

The event.pageX property in jQuery refers to coordinate of mouse relative to the left edge of the document.

jQuery event.pageX property Example

example

Show 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);
});

Try now

Date:2019-08-29 10:27:06 From:www.Lautturi.com author:Lautturi