JavaScript Mouse Position Mozilla Firefox
Date: 03/22/05
(Mozilla) Keywords: java, google
I seem to be having trouble finding a working answer on any of the pages I've found using google. Let's say I've got a javascript function bob(). when the is clicked, I want the function bob() to alert the current x and y of the mouse. It works on IE as alert(event.x) and alert(event.y), but it doesn't work in Mozilla Firefox as any of the functions that I've been given. For example, e.clientX or e.pageX do nothing for me. What's the javascript code to return the mouse positions in Firefox?
X-posted in c0mp_g33ks
Source: http://www.livejournal.com/community/mozilla/265188.html