title: javascript submit form and capture response
body: <p>I have from which will be submited to iframe:</p>
  
  <pre><code>&lt;form id="myform" action="http://example.com/" target="myiframe"&gt;
       //some fields
  &lt;/form&gt;
  
  &lt;iframe name="myiframe" src=""&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Then on some point I submit this form with javascript:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      document.getElementById("myform").submit();   
  &lt;/script&gt;
  </code></pre>
  
  <p>How to capture response after .submit()?</p>
  
  <p>I can't use jQuery and Ajax call.</p>