Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

clientY property

Gets the y-coordinate of the mouse pointer, relative to the upper-left corner of the viewport (that is, the application's client area).

Document Object Model (DOM) Level 3 Events Specification, Section 5.2.3Internet Explorer 9

 

Syntax

JavaScript

p = object.clientY

 

Property values

Type: Integer

The y-coordinate.

Standards information

Remarks

Client coordinates do not reflect the scroll offset of the page. To get the mouse pointer's coordinates relative to the upper-left corner of the document, use the pageX and pageY properties.

See also

DragEvent
MouseEvent
MouseWheelEvent
WheelEvent
Reference
offsetY
pageY
screenY
y

 

 

Show:
© 2016 Microsoft