How to detect and utilize Multiple Monitors/screens in Javascript within Edge Chromium

shockoMS 281 Reputation points
2022-11-04T22:42:21.217+00:00

I have a specific requirement to port an older application from IE11 to MS Edge. We have tested everything in Edge and all works fine bar one thing. Our application calls Window.Open() to create new windows to view certain data. Our users use multiple (2) monitors with the desktop extended across these monitors. We need to ensure that certain windows when opened appear on the other monitor from which they were launched i.e. if the parent windows is on the left monitor the new spawned window opens on the right one.

Microsoft Edge | Microsoft Edge development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-11-07T03:18:48.64+00:00

    Hi @shockoMS ,

    As is reported, Edge/Chrome ignores the parameter for putting a popup window on a second monitor. Here're 2 workarounds for you:

    1. Enable the Experimental Web Platform features flag at chrome://flags/#enable-experimental-web-platform-features.
    2. Try IE mode. Since you have no such problem back in IE11, IE mode should serve you in the same way. If you have further problem, please feel free to contact us.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,
    Shijie Li

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.