title: window.close not closing window in HTA application
body: <p>In my HTA application I'm using a JavaScript calendar window, it opens using window.open() and closed using window.close(), when the user clicks on one of the dates. This calendar works fine on multiple browsers and versions over more than 10 years. It even works in HTA applications most of the time.</p>
  
  <p>However on specific workstations running IE11. The window.close() command is simply ignored, resulting in the window left open. On other IE11 workstations it works fine. I figured that turning off the "Enable Protected Mode" checkbox on IE11, Internet Options, Security tab resolves the problem on one of the problematic workstation. However, other workstations works fine with this setting turned on and turning off this setting is not an acceptable solution.</p>
  
  <p>Code sample which reproduces the problem:</p>
  
  <p>HTA application</p>
  
  <pre><code>&lt;HTML&gt;
  &lt;HEAD&gt;
  &lt;HTA:APPLICATION ID="OpenCloseExample" BORDER="thick" BORDERSTYLE="complex"/&gt;
  &lt;TITLE&gt;Open Close HTA container&lt;/TITLE&gt;
  &lt;/HEAD&gt;
  &lt;iframe width="1024px" height="768px" src="http://localhost:28080/openclose.html"/&gt;
  &lt;/HTML&gt;
  </code></pre>
  
  <p>openclose.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Main Page&lt;/title&gt;
      &lt;script src="openclose.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;a href="#" onclick="openWindow();"&gt;open&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>openclose.js</p>
  
  <pre><code>var win;
  
  function openWindow() {
      win = window.open("", "_blank", 'width=250,height=250,status=no,resizable=no,location=no,top=100,left=100');
      win.document.writeln("&lt;html&gt;&lt;head&gt;&lt;script src='openclose.js'&gt;&lt;/script&gt;&lt;/head&gt;&lt;a href='#' onclick='javascript:window.opener.closeWindow()'&gt;close&lt;/a&gt;&lt;/html&gt;");
  }
  
  function closeWindow() {
      win.window.close();
  }
  </code></pre>