title: Remove header and footer from window.print()
body: <p>I am using window.print() for printing page, but I got header and footer contains page title, file path, page number and date. How to remove them? </p>
  
  <p>I tried print stylesheet also.</p>
  
  <pre><code>#header, #nav, .noprint
  {
  display: none;
  }
  </code></pre>
  
  <p>Please help. Thanks.</p>