Hi,
I have an HTML canvas in a html table. Depending on the size of the browser the mouseover position (when hovering over the canvas) changes. I would like to be able to find out the offset of the canvas. Is there an element in the mouseover event that I can look at?
I tried susbtracting pageY and pageX with no success.
function handleMouseover(e) {
var posx = e.clientX;
var posy = e.clientY;
var text = posx+";"+posy;
posx=e.screenX-e.pageX;
posy=e.screenY-e.pageY;
text = posx+"/"+posy;
drawEventDisplay(text);