screenX property

Gets the x-coordinate of the mouse pointer, relative to the upper-left corner of the screen.

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

 

Syntax

JavaScript

p = object.screenX

 

Property values

Type: Integer

The x-coordinate.

Standards information

See also

DragEvent
MouseEvent
MouseWheelEvent
WheelEvent
Reference
clientY
pageY
screenY
y

 

 

Show:
© 2015 Microsoft