Question: print() doesn't work in IE after opening a new window. It works in Chrome.
Here's a [tester](http://www.w3schools.com/js/tryit.asp?filename=try_win_focus):

```
<html>
<head>
<script type="text/javascript">
  function openWin()
  {
    myWindow=window.open('','','width=200,height=100');
    myWindow.document.write("<p>This is 'myWindow'</p>");
    myWindow.focus();
    myWindow.print(); //DOES NOT WORK
  }
</script>
</head>
<body>

<input type="button" value="Open window" onclick="openWin()" />

</body>
</html>

```

Answer: 
checkout: 
[window.print() not working in IE](https://stackoverflow.com/questions/2555697/window-print-not-working-in-ie)

Working sample:
<http://jsfiddle.net/Q5Xc9/1/>
```
<script type="text/javascript">

    function printDiv(divName) {
         var printContents = document.getElementById(divName).innerHTML;
         var originalContents = document.body.innerHTML;
         document.body.innerHTML = printContents;
         window.print();
         document.body.innerHTML = originalContents;
    }

</script>

<div id="printableArea">CONTENT TO PRINT</div>

<input type="button" onclick="printDiv('printableArea')" value="Print Report" />

```