-2

When I click on a square element I want to know the exact position of where it was clicked, how do I do that?

1 Answers1

0

pls read this MouseEvent

you can use e.clientX and e.clientY

Hao.Le
  • 183
  • 10