E.pagex Not Working In Firefox
Reply With Quote 07-07-2006,11:12 AM #3 tamjeed.ahamed View Profile View Forum Posts New to the CF scene Join Date Jul 2006 Posts 3 Thanks 0 Thanked 0 Times in 0 Posts var mouseX = e.clientX; var mouseY = e.clientY; /L -- Lasse Reichstein Nielsen - email@example.com DHTML Death Colors:
window.event good for IE but not Netscape/Firefox P: n/a RC I am try to detect the mouse pointer by var event = window.event; var x = event.pageX; var y = event.pageY; Register. true : false ; Detects true for Netscape 4 or OmniWeb (and isn't used here) var ie4 = (document.all) ? Basically I am calling the function below everytime the mouse is clicked, and it works fine in Chrome, but in Firefox the alert("This is not called") never gets called.
Post your question and get tips & solutions from a community of 418,812 IT Pros & Developers. Mouseevent Offsetx Name E-Mail (will not be published) Website Please note: Constructive criticism is welcome. The document is always at 0,0- it is the context that all the other x and y's are calculated from. Is this your first visit?
Clientx Vs Pagex
Here's an example of capture the mouse position: Code: