I would like to get the coordinates of every mouse click, and have the element's beginning as the reference point (so click at the first top-left pixel will be 0,0).
I know functions such as pageX/Y and clientX/Y, but they use a different reference point.