title: How do I capture response of form.submit
body: <p>I have the following code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          function SubmitForm()
          {
  
              form1.submit();
          }
  
          function ShowResponse()
          {
  
          }
  &lt;/script&gt;
  .
  .
  .
  &lt;div&gt;
      &lt;a href="#" onclick="SubmitForm();"&gt;Click&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to capture the html response of <code>form1.submit</code>? How do I do this? Can I register any callback function to form1.submit method?</p>