The parameter of the handler function (the "Event" object) has the values ββ"pageX" and "pageY". Do the math with those, and "position ()" or "offset ()" for your img element (depending on what works best, it seems to me confusing to predict which of the two will work in any situation).
In other words, the "position ()" of the img element gives the "top" and "left" value. Subtract those from "pageY" and "pageX", and you have a position inside the image itself relative to its upper left corner.
I'm not sure I understand why you are attached to the send event - is this the image inside the send button or something else?
source share