It depends on the browser. I'm not sure about Netscape, but in IE there is an event object passed to your event handler by default. Inside of your event that handles the button click you can simply inspect the event.x and event.y properties to get the coordinates of the click.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com