title: Executing a CGI script via javascript
body: <p>How can I make a cgi script be executed when a javascript function is called? Currently I am using a small iframe and loading the cgi script there, but it does not seem to be working. here is a snippet of code:</p>
  
  <pre><code>function back()
  {
      document.getElementById("hidden").src="scripts/backImage.cgi";//execute background script
      document.getElementById("scan").src="scripts/getImage.cgi";//reload the display iframe
  }
  </code></pre>