screenX property

Sets or retrieves the x-coordinate of the mouse pointer's position relative to the user's screen. For the standards based property, see screenX.

Syntax

JavaScript

p = object.screenX

 

Property values

Type: Integer

the x-coordinate, in pixels.

Remarks

For events, the property is read-only in Microsoft Internet Explorer 4.0, and read/write in Microsoft Internet Explorer 5 and later. The window property is read-only.

See also

event
window

 

 

Show:
© 2014 Microsoft