title: trying to print the contents in a new window
body: <p>I am trying to <code>print</code> the html <code>contents</code> to a new <code>window</code>.</p>
  
  <pre><code>var w= window.open();
  var htmlContent = $(printdiv).html(printcontent);
  $(w.document.body).html(htmlContent);
  $(w).location.reload();
  $(w).focus();
  $(w).print();
  $(w).close();
  </code></pre>
  
  <p>I am a getting a <code>blank window</code> with no <code>html</code> contents instead? </p>