title: Print page created with javascript not styling according to css
body: <p>I have a <code>div</code> with <code>id</code> <code>target_wrapper</code>.</p>
  
  <pre><code>&lt;div id="target_warpper"&gt;
        &lt;div id="target"&gt;
        ///Some content here
        &lt;/div&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p>And the corresponding javascript function to print the page is :</p>
  
  <pre><code>&lt;div class="print_list"&gt;
                          &lt;a href="javascript:PrintContent()"&gt;Print&lt;/a&gt;
                      &lt;/div&gt;
  
                      &lt;script type="text/javascript"&gt;
                      function PrintContent() 
                      {
  
  
                          var DocumentContainer = document.getElementById('target_warpper');
                          var WindowObject = window.open('', 'PrintWindow', 'width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes');
  
  
                          WindowObject.document.writeln('&lt;!DOCTYPE html&gt;');
                          WindowObject.document.writeln('&lt;html&gt;&lt;head&gt;&lt;title&gt;&lt;/title&gt;');
                          WindowObject.document.writeln('&lt;link rel="stylesheet" type="text/css" href="css/print.css"&gt;');
                          WindowObject.document.writeln('&lt;/head&gt;&lt;body&gt;')
  
                          WindowObject.document.writeln(DocumentContainer.innerHTML);
  
                          WindowObject.document.writeln('&lt;/body&gt;&lt;/html&gt;');
  
                          WindowObject.document.close();
                          WindowObject.focus();
                          WindowObject.print();
                          WindowObject.close();
                      }
                      &lt;/script&gt;
  </code></pre>
  
  <p>But when I click on the <code>Print</code> link, the page that appears does not contain the <code>css</code> <code>css/print/css</code> I have included. </p>
  
  <p>NB: When I click on the view page source for the print pop up window, it shows blank!</p>