title: Calling a VBScript subroutine/function using html onclick, ASP
body: <pre><code>&lt;%@ language = "VBScript"%&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt; 
  
  &lt;form method="post" action = ""&gt;
  &lt;input type = "submit" onclick = "check()" value = "Submit"/&gt;
  &lt;/form&gt; 
  
  &lt;%
  sub check()
      Response.write("TEST")  
  end sub
  %&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I click on the submit button, this doesn't print "TEST" for some reason.</p>