IE mode parent open Edge Chromium mode child window, window.name goes missing?

New Contributor

 

In parent Edge browser, running IE mode, running this code

function openLinkInIE(url){
  window.open("microsoft-edge:"+ url, 'childWindow');
}

 The new Edge browser opens, running in Edge Chromium mode.

Check window.name in console, window.name is empty.

 

Question 1: Why is window.name empty in child ?

Question 2: Is it possible to use window.postMessage from parent IE mode browser window to Edge Chromium mode child browser?

Question 3: Is there some other way to to window.postMessage from IE mode parent to Edge Chromium mode child? Or some workaround?

 

When I do IE mode parent open IE mode child, window.name is not missing, as its defined by parent.

The same goes for Chromium mode parent to Chromium mode child, window.name is is not missing.

I suspect its a problem with the missing window.name in child because using window.postMessage depends on the child window name, defined when using window.open.

1 Reply

I'm still trying to get this to work.

 

https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage

 

For window.postMessage, it does not work when Edge IE mode opens(parent) a , a Edge Chromium mode child.

 

Is there a way to make this work? or workaround ? Or example?