Skip to content

Instantly share code, notes, and snippets.

@kalaschnik
Last active January 20, 2021 13:59
Show Gist options
  • Save kalaschnik/245d453c4f641b23e37a16d157aef67c to your computer and use it in GitHub Desktop.
Save kalaschnik/245d453c4f641b23e37a16d157aef67c to your computer and use it in GitHub Desktop.
Tool Tip which shows your screen coords when your mouse stops (screenXY, pageXY, clientXY)
document.onmousemove = function(e){
e.target.title = `screenX,Y:\t\t${e.screenX},${e.screenY}
pageX,Y:\t\t${e.pageX},${e.pageY}
clientX,Y:\t\t${e.clientX},${e.clientY}`;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment