title: IE8 moves popup browser window to background
body: <p>I need to open the popup dialog and then set focus on an element of a parent window. But as soon as the focus is set (after 5 seconds), the popup dialog moves to background (this behavior is reproducible for IE8 only).</p>
  
  <p>There is the code to demonstrate this behavior:</p>
  
  <p>Parent Page:</p>
  
  <pre><code>&lt;h:head&gt;
      &lt;h:outputScript name="jquery.js"/&gt;
      &lt;script type="text/javascript"&gt;
          var showPopup = function () {
              window.open("http://localhost:8880/pages/reader.xhtml", "Popup");
          };
  
          var setupFocus = function () {
              setTimeout(function () {
                  $('#mainFrm\\:nameInp').focus();
              }, 5000);
          };
      &lt;/script&gt;
  &lt;/h:head&gt;
  &lt;h:body&gt;
      &lt;h:form id="mainFrm"&gt;
          &lt;h:inputText id="nameInp"/&gt;
          &lt;h:commandButton type="button" onclick="showPopup(); setupFocus()" value="Show Popup"/&gt;
      &lt;/h:form&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p>Popup Dialog Page (it is empty):</p>
  
  <pre><code>&lt;h:head&gt;
  
  &lt;/h:head&gt;
  &lt;h:body&gt;
  
  &lt;/h:body&gt;
  </code></pre>
  
  <p>Is there any workaround for this problem?</p>