Event.screenX (Property)

Mouse position relative to the screen display.


JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Opera - 5.0
Property/method value type:Number primitive
JavaScript syntax:-myEvent.screenX

You may need to know the position of the mouse relative to the screen display coordinates and not the browser window or objects within it. This property provides the horizontal coordinate of the mouse within the screen.

DOM level 2 event handling moves this property to the MouseEvent object.

See also:Event.clientX, Event.clientY, Event.pageX, Event.pageY, Event.screenY, MouseEvent.screenX

Property attributes: