title: HTML button on expressjs server run node.js script
body: <p>I have a button in HTML:</p>
  
  <p><code>&lt;button id="save" type="button" onclick="save()"&gt;Save&lt;/button&gt;</code></p>
  
  <p>and in javascript I want it to run something in node.js, something that's not client side.</p>
  
  <p>So something like this is what I am looking for:</p>
  
  <pre class="lang-js prettyprint-override"><code>function save() {
      //run script from server
  }
  </code></pre>
  
  <p>And if this script MUST be ran as if I was typing <code>node script.js</code> </p>
  
  <p>The reason the script has to be ran as if I was typing it was because it's saving a file to the node.js server, a json to be exact, and that file must be on the node.js server for my application.</p>