Mouse Tracker

Track mouse coordinates in real-time across screen, window, and page.

Screen Coordinates

screenX0
screenY0

Relative to the entire screen/monitor

Window Coordinates

clientX0
clientY0

Relative to the browser viewport

Page Coordinates

pageX0
pageY0

Relative to the document (includes scroll)

Element Offset

offsetX0
offsetY0

Relative to the target element (when hovering over an element)

Mouse Event Properties

screenX/Y: Coordinates relative to the user's screen/monitor

clientX/Y: Coordinates relative to the browser viewport (visible area)

pageX/Y: Coordinates relative to the document, including scrolled area

offsetX/Y: Coordinates relative to the target element

Mouse Buttons: 0=Left, 1=Middle, 2=Right

Trail: Visual representation of recent mouse movements