jQuery Tutorial Tutorials - jQuery event.pageY

jQuery event.pageY

The event.pageY property in jQuery refers to coordinate of mouse relative to the top edge of the document.

jQuery event.pageY 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 18:47:32 From:www.Lautturi.com author:Lautturi