Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

pageX property

Gets the y-coordinate of the mouse pointer, relative to the upper-left corner of the page.

Internet Explorer 9

Syntax

JavaScript

p = object.pageX

Property values

Type: Integer

The x-coordinate.

Standards information

Remarks

The pageX property is equivalent to the clientX value plus the scrollLeft value of the document, as the following code example shows.


var pageX = event.clientX + document.documentElement.scrollLeft; 

See also

DragEvent
MouseEvent
MouseWheelEvent
WheelEvent
Reference
clientX
offsetX
screenX
x
pageY
offsetY
screenY
y

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.