title: Is this Chrome Bug? How can I solve? : It skips some alert comments in the opener's Function
body: <p>I poped a popup window. And the popup called the opener's function which has some alerts.
  But,Chrome skipped the previous alert and executed the last alert.</p>
  
  <p>Is this a bug of Chrome Browser?</p>
  
  <p><strong>main.html</strong> </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;head&gt;
      &lt;script type="text/javascript"&gt;&lt;!--
      function popUp(){
          winobject = window.open("pop.html", "popName","left=100,top=100,toolbar=no,status=yes,menubar=no,width=200,height=200");
      }
  
      function fnCallBack(param) {
          alert("1. msg (" + param + ")");
          alert("2. msg (" + param + ")");
      }
  
      function alertN() {
    alert("1. alert");
    alert("2. alert");
      }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
   &lt;input type="button" value="alertN" onclick="alertN();" onkeypress="alertN();" /&gt;
   &lt;input type="button" value="popUp" onclick="popUp();" onkeypress="popUp();" /&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>pop.html</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;head&gt; 
  &lt;script type="text/javaScript" &gt;&lt;!--
  function pressOk(){
              opener.fnCallBack("From Pop");
        window.close();
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;input type="button" value="OK" onclick="pressOk();" /&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>When I press "OK" button in popup window, Chrome just showed only "2. msg ...".</p>