clientX Property Sample

Click anywhere in the window to obtain the X and Y coordinates of the mouse relative to the window.

Notice that the client coordinates also appear in the status window of the browser (lower left corner).




[Right-click and choose View Source from the shortcut menu.]

© 2007 Microsoft Corporation. All rights reserved. Terms of use.