+ Start a Discussion

Coordinates of a click on image in a Visualforce page

I need to display an image in Salesforce Visualforce page with the following behavior. When the image is clicked, depending upon the x and y coordinates of the click, I need to update the contents of a table on the same page. How do I get the x and y coordinates of the image that the user has clicked.


Appreciate your help.


This sounds like javascript rather than visualforce.


There's a good page on this at: