[ad_1]
This will tell you the current x-y coordinates.(displayed in console)
function move(e){
console.log("x" + e.clientX);
console.log("y" + e.clientY);
} .box{
width: 600px;
height: 500px;
border: 1px solid black;
}<body>
<div class="box" onmousemove="move(event)">
</div>
</body>
[ad_2]
solved How to tell pointer’s current x-y coordinates [duplicate]