File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes window.event.clientX does not work in IE8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "window.event.clientX does not work in IE8" Watch "window.event.clientX does not work in IE8" New topic

window.event.clientX does not work in IE8

Sameer Kumar

Joined: Jul 09, 2008
Posts: 6

We are checking the window size while closing the screen, and if its less than 0, we have to do some processing.
Means, just before closing the window, we have to update some records in database.
This particular check "if ((window.event.clientX < 0) || (window.event.clientY < 0)) {" was working fine with IE6 and IE7 but failing in IE8.
Any one knows any alternative regarding this.
We are supporting only IE browsers.


Regards,<br />Sameer Kumar
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Maybe IE finally fixed that!! If you can not read it, than I am guessing IE corrected that so it behaves like every other browser.

So your code fails with Ctrl-W, browser errors, closing via taskbar, typing in the address bar, etc?

I agree. Here's the link:
subject: window.event.clientX does not work in IE8
It's not a secret anymore!