I am trying to do new functionality. I was able to achieve what I want in modern browsers but not in the IE11.
if (!window.IS_PRESENTING) {
childWindow = window.open(window.location.pathname);
childWindow.IS_PRESENTING = true;
setupMainWindow();
} else {
setupChildWindow();
}
In modern browsers IS_PRESENTING is being set on the child windows. But in the IE11 it doesnt work and the browser keeps opening new windows...
How can I fix this? Any suggestions?
I can reproduce the issue in IE 11. As a workaround, in IE 11, you can get the value of
window.IS_PRESENTINGin the opening window and set the opening window'sIS_PRESENTINGvalue according to it :In the opening window:
Reference link: Window.opener