Double-click anywhere in the window (except in the black area) to obtain the X and Y coordinates of the mouse relative to the object which fired the event, in this case the BODY.

Click in the black area to obtain the X and Y coordinates of the mouse relative to the event which fired the event, in this case the DIV positioned absolutely at 200px x 300px.

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

This is an absolutely positioned DIV at 200px x 300px.


[Right-click anywhere in the window to view the source code]



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

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