title: How can I delay "onsubmit" event until something is loaded?
body: <p>I have problem that in <code>onSubmit</code> event of a <code>form</code>. </p>
  
  <p>I am sending some tracking information to another webpage using javascript <code>image</code> element for that (parameters are in <code>GET</code>).</p>
  
  <p>But when I try to load that <code>image</code> (via <code>src</code> attribute), page is refreshed sooner than the request for <code>image</code> takes place (or is immediately aborted).</p>
  
  <p>This way, no information is sent to external tracking page. How can I wait in this <code>submit</code> handler for <code>load</code> of that <code>image</code>?</p>
  
  <p><strong>EDIT:</strong>
  There is one more point I missed, that other events can be in the same place (e.g. validation etc.)</p>