title: Java script printing out a blank page
body: <p>I have the following java script code</p>
  
  <pre><code>  $("#btn_Print").click(function (e) {
              e.preventDefault();
              var printWindow = window.open("../private/analysisPrint.htm");
              printWindow.print();
              printWindow.close();
              return false;
          });
  </code></pre>
  
  <p>and the analysisPrint.htm page contains. </p>
  
  <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html
  
       xmlns="http://www.w3.org/1999/xhtml"&gt;
      &lt;head&gt;
          &lt;title&gt;&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div&gt;
              &lt;h4&gt;
                  Print&lt;/h4&gt;
                  First print page
          &lt;/div&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>The problem I am having is that I am always getting a blank page being printed. When i open the page directly and print its fine. </p>
  
  <p>Any Ideas</p>