Name
pageX, pageY — NN 4 IE n/a DOM n/a
Synopsis
Read-only
The left and top coordinates of the element’s content relative to the top-left corner of the page area when the event fired. The measurements ignore any scrolling of the page.
Example
if (evtObj.pageX <= 20 && evtObj.pageY <=40) { ... }
Value
Integer pixel count.
Default
None.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.