title: Javascript Printing Doesn't work - not printing full page
body: <p>i am trying to print full page but it doesn't work tried different codes but no success</p>
  
  <p>here is tried code.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;SCRIPT LANGUAGE="JavaScript"&gt; 
  if (window.print) {
  document.write('&lt;form&gt;&lt;input type=button name=print value="Print"     onClick="window.print()"&gt;&lt;/form&gt;');
  }
  &lt;/script&gt;
  
  &lt;style type="text/css" media="all"&gt;
  body{font-size:1em;}
  table{font-size:0.9em;}
  .price{text-align:right;padding-right:5px;}
  .center{text-align:center;}
  table tr{height:20px;}
  @media print {body, html{width: 100%;}}
  #top, #bottom {display: none;}
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body style="width:100%;"&gt;
              &lt;table width="94%" style="margin-left:2%;"&gt;
  
               &lt;tr&gt;
                      &lt;td width="100%" colspan="3" class="center" style="height:35px;"&gt;    &lt;span style="text-transform:uppercase;"&gt;&lt;b&gt;ORDER TYPE &lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
               &lt;/tr&gt;
               &lt;tr&gt;&lt;/table&gt;
  
  
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>please help me with it.</p>
  
  <p>thanks</p>