title: Why does it print only one time? Please give me solution
body: <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
      function printpage()
          {document. getElementById ('print').style.display='none';
          window.print()
      }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;td align="center"&gt;
      &lt;input  name="print" type="submit" id="print" value="PRINT" onclick="printpage()" /&gt;
    &lt;/td&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I click, it will open a print window.
  Once I close print window and open it again and then click on print, without reloading, then it will not work.</p>