title: Print IFrame in ie10 doesn't work
body: <p>I am trying to print a dynamically created iframe in IE10. It neither throws error nor works. Below is my code.</p>
  
  <pre><code>function PrintVisitSlip() {
      var f = document.getElementById('frmPrintVisitSlip');
      var ifrm = document.createElement("iframe");
      ifrm.src = 'about:blank';
      ifrm.style.display = "none";
      document.body.appendChild(ifrm);
      var _styleCSS = '&lt;style type="text/css"&gt;p{border-bottom: white;}.Head{font-size: 9pt;font-weight: bold;}'
          + 'td{border-bottom: 1px solid black;height: 8px;padding: 0px 0px 0px 0px;margin: 0 0 0 0;font-size: 7pt;padding: 1px 0 1px 0;}'
          + '.LC{width: 125px;text-align: left;padding-left: 4px;}.RC{width: 21px;text-align: right;padding-right: 3px;}'
          + '.LC1{width: 80px;text-align: left;padding-left: 4px;font-size: 6.5pt;}.RC1{width: 18px;text-align: right;}&lt;/style&gt;';
      ifrm.contentWindow.document.open('text/html', 'replace');
      ifrm.contentWindow.document.write(_styleCSS + f.outerHTML);
      ifrm.contentWindow.document.close();
      var iw = ifrm.contentWindow || ifrm;
      iw.focus();
      iw.print();
      return false;
  }
  </code></pre>
  
  <p>This code works fine in chrome. But in IE10 I doesn't see any print window populating on click of print button.</p>