User adding points by clicks

I wish to make a web-app where the user clicks on the screen, and points appear on it. From this, I compute the centre of mass with respect to all these points. I was just wondering what function would allow me to click on the screen, and to have points appear? I'm aware that [Preformatted text]( allows the user to draw boxes around points, so it seems possible. Any help would be greatly appreciated.

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.