title: How to get window.print() to run locallly?
body: <p>Hi I have been writing a website for the last couple of weeks but cannot get the Javascript function window.print() to run locally in my browser. I do not have server space yet so I cannot check the online functionality. Here is my code:</p>
  
  <pre><code>    &lt;form&gt;
          &lt;input type="button" value="Print this page" onclick="window.print();" /&gt;
      &lt;/form&gt; 
  </code></pre>
  
  <p>Does anyone know if this function can run on a local machine? Or is there a problem with my code? Thanks</p>