Abakada HTML Demo: offsetX, offsetY Properties


Double-click anywhere in the window 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 this black area to obtain the X and Y coordinates of the mouse relative to the object which fired the event, in this case this DIV.

Notice that the offset coordinates also appear in the lower left corner of the status bar.


View Source   Exit

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.