Last active
January 20, 2021 13:59
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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