IE 11 event.ClientX/pageX do not give me the position of the mouse when i close the window

Won’t fix Issue #1083519

Details

Created
Nov 18, 2014
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

<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

                                                                   &amp;&amp; (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

                                                       &amp;&amp; (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>

Expected Results:

The Position of the mouse in the window

Actual Results:

Dev Channel specific:

Yes

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Sermet I.”

      Changed Title from “IE 11 event.ClientX/pageX do not give me the position of the moues when i close the window” to “IE 11 event.ClientX/pageX do not give me the position of the mouse when i close the window”

      Changed Assigned To from “Sermet I.” to “Alexander W.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Alexander W.” to “IE F.”

      Changed Status from “Confirmed” to “Won’t fix”

    You need to sign in to your Microsoft account to add a comment.

    Sign in