J
James Black
I am tracking the mouse movements in the textarea, but it gives me
mouse coordinates.
I use this code, for the moment, to get the mouse coordinates:
xcoord = e.pageX - e.target.offsetLeft;
ycoord = e.pageY - e.target.offsetTop;
I want it to be relative to the text area, not to the screen, which is
why I do the subtraction.
I am using FF1.5 for my testing, at the moment.
How do I determine the row/col?
Thank you.
mouse coordinates.
I use this code, for the moment, to get the mouse coordinates:
xcoord = e.pageX - e.target.offsetLeft;
ycoord = e.pageY - e.target.offsetTop;
I want it to be relative to the text area, not to the screen, which is
why I do the subtraction.
I am using FF1.5 for my testing, at the moment.
How do I determine the row/col?
Thank you.