I am having a problem in IE 11 that when I open a new window via win1 = window.open(...) I am not able to close it again via win1.close().
Below, on logging out from the Main window, the child window opened under OpenWindowWithGet() does not get closed under IE 11. Works perfectly fine with Google Chrome.
[Update] : When I perform this operation on IE 11's Console under developer tools, I am able to open the window using window.open (using assigned variable) and close it using window.close() [as var1.close()]. Just something more than might help analyse this anomaly.
<html>
<script type="text/javascript">
var win1;
function OpenWindowWithGet(urllink, windowoption, name){
var form = document.createElement("form");
form.method = "GET";
form.action = urllink;
form.target = name;
var input = document.createElement("input");
input.type = "hidden";
input.name = "OAP_Id";
input.value = OAP_Id;
form.appendChild(input);
document.body.appendChild(form);
win1 = window.open(urllink, "Manual", windowoption);
form.submit();}
function OAPLogoutClick(){
disconnectFromNodeServer();
win1.close();
}
HTML code for OpenWindowWithGet() inside the MyManual() function -
<h:panelGrid id="manual" columns="2" cellpadding="2px" cellspacing="0" style="display: inline-block;">
<h:panelGroup>
<a onclick="return myManual();" target="_blank" style="width: 40px; display: inline-block; position: relative; top: 2px; color: #000000">Manual</a>
</h:panelGroup>
<h:outputLabel id="manualSeparator" value=" | " style="color: #000000; display: inline-block;"/>
</h:panelGrid>
HTML code for OAPLogout() -
<div class="oapadding5" onclick="hideGroupedInfo();OAPLogoutClick();stopEventPropagation(event);" onmouseover="onRowMouseOver(this);" onmouseout="onRowMouseOut(this);" style="display: #{oASession.m_bShowLogout eq 'true'? '':'none'}">
<h:commandLink id="logoutLink2" styleClass="oatextpaddingleft" style="color: #{oAThemeBean.m_objCurrentThemeInfo.m_strTextFontColor};" value="#{OMNIGEN.LOGOUT}" onclick="return false;">
</h:commandLink>
</div>
Related question, but the provided resolution didnt help. questions/710756
Any suggestions?
Thank you.