Posts by Paulo Barcelos • 1 point
1 post
-
-2
votes2
answers10552
viewsA: How to take the position X and Y of an element, relative to the screen?
html <div onmousemove="showCoords(event)" onmouseout="clearCoor()" onclick="getCoor(event)"></div> js function showCoords(event) { var x = event.clientX; var y = event.clientY; var coor…
javascriptanswered Paulo Barcelos 1