Cannot communicate between IE mode compatible website and popup opened using window.open

Bhanu Singh 1 Reputation point
2022-02-28T16:31:43.527+00:00

Hi Team,

Application 1 is running in IE compatible mode in Edge.When we open application 2 using window.open , pop-up window is opened in edge.When we try to send back data using window.opener.postMessage, window.opener is coming as undefined.It happens only in Microsoft Edge in windows and working fine in other browsers. Can you please let me know how can we fix this issue.

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,238 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XuDong Peng-MSFT 10,341 Reputation points Microsoft Vendor
    2022-03-01T02:32:26.247+00:00

    Hi @Bhanu Singh ,

    According to your description, the main cause of the problem is that these two applications are running in different browsers(IE and Edge), because page in Edge IE mode actually runs the Internet Explorer tab. So you can't get the handle to the opened page correctly.

    If you need these two applications to communicate properly, then you need to make the opened page also run in the same browser, add it to the IE mode site list, this should solve the problem. For more about IE mode configuration, please refer to this doc: Configure IE mode policies.

    Best regards,
    Xudong Peng


    If the answer is the right solution, 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.