Just a gentle reminder that Mozilla Firefox doesn’t seem to support the offsetX and offsetY values for mouse events. If you find yourself wanting that value in Firefox, a suitable replacement is to subtract the targeted element’s offsetTop/Left from pageX/Y, which will give you the same value as offsetX/Y would give you.
Here is an easy function for jQuery users, which will add offsetX/Y to your existing event variable.
