title: window.print very slow . Alert comes before print
body: <p>In the below code second alert comes before the first print pop page.
  Search results says window.print is a OS functionality and it does not have return value.</p>
  
  <p>Second alert should come only after the print popup.
  Kindly help</p>
  
  <pre><code>&lt;script&gt;
      function myFunction() {
          for(i=0;i&lt;6;i++){
              alert('Printing Copy:'+i);
              window.print();
          }
      }
  &lt;/script&gt;
  </code></pre>