Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.3Internet Explorer 9

 

Syntax

HRESULT value = object.get_screenX(* p);

Property values

Type: long

The x-coordinate.

Standards information

Remarks

Note  Screen coordinates depend on the document zoom level. At 200% magnification, Windows Internet Explorer reports the "logical" position of a pixel as half of the distance of the same position at 100% zoom. For more information, see Making the Web Bigger: DPI Scaling and Internet Explorer 8.

See also

Reference
IDOMMouseEvent::clientY
IDOMMouseEvent::pageY
IDOMMouseEvent::screenY
IDOMMouseEvent::y

 

 

Community Additions

ADD
Show:
© 2015 Microsoft