ClientX does not give me the position of the moues when i close the window
With IE 10 it works without any Problems, i ve tested it with the last two version of the IE11 (11.0.12 and 11.0.13).
I put a little site for testing.
<html><head><meta http-equiv="X-UA-Compatible" content="IE=11"/> // To change the browser mode<title>ClientX Example</title><script type="text/javascript"> function onLogoff() { if (navigator.appName == 'Netscape') { // IE 11 var windowLaenge = (document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth); if (window.event.clientY <= "0"&& (window.event.clientX > (windowLaenge - 16) || window.event.clientX < 16)) { } alert("Netscape: X: " + window.event.clientX + " Y:" + window.event.clientY); } if (navigator.appName == "Microsoft Internet Explorer") { // IE 10 var windowLaenge = (document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth); if (window.event.clientY <= "0"&& (window.event.clientX > (windowLaenge - 16) || window.event.clientX < 16)) { } alert("Microsoft Internet Explorer: X: " + window.event.clientX + " Y:" + window.event.clientY); } } </script></head><body onbeforeunload="onLogoff()"><p>Close Window to show the alert with the position of the mouse</p></body></html>