R
romain.larmet
Hi all,
I need to get the mouse cursor's position using JavaScript. Until now,
everything was working well in IE, FF and Opera using the
event.clientX/Y and e.pageX/Y members, depending on which browser is
used.
However, I've made some modifications (I don't remember what precisely
but nothing related to this component, in fact) and now this portion
of JavaScript code isn't working anymore.
Now, the cursor's position are still "undefined", even if the
mousemove handler is indeed executed. The strange thing is that this
behaviour occurs in all 3 browsers, which means that not only
event.clientX/Y returns undefined, but also e.pageX/Y for Firefox...
Any idea on why these coordinates are not available anymore?
Thanks
I need to get the mouse cursor's position using JavaScript. Until now,
everything was working well in IE, FF and Opera using the
event.clientX/Y and e.pageX/Y members, depending on which browser is
used.
However, I've made some modifications (I don't remember what precisely
but nothing related to this component, in fact) and now this portion
of JavaScript code isn't working anymore.
Now, the cursor's position are still "undefined", even if the
mousemove handler is indeed executed. The strange thing is that this
behaviour occurs in all 3 browsers, which means that not only
event.clientX/Y returns undefined, but also e.pageX/Y for Firefox...
Any idea on why these coordinates are not available anymore?
Thanks