The screenX property is used to return the horizontal (x) coordinate of a window. It is relative to the screen. Its similar properties are screenTop Property, screenLeft Property, and screenY Property.
Its syntax is:- window.screenX
Its return is:- horizontal position in pixels of the window relative to the screen.