This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 15376
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?

It is sorta covered in the JavaRanch Style Guide.
subject: window.event.clientX does not work in IE8
Similar Threads
java Script Program
Nested datatables and inputText with duplicates id
MultiDimenaional Array sort
Session destroy on window close
Detecting the window close in IE