Export (0) Print
Expand All
This topic has not yet been rated - 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

HRESULT value = object.get_pageX(* p);

Property values

Type: long

The x-coordinate.

Standards information

Remarks

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


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

See also

Reference
IDOMMouseEvent::clientX
IDOMMouseEvent::offsetX
IDOMMouseEvent::screenX
IDOMMouseEvent::x

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.