title: How can I run some JavaScript *after* a form submit event?
body: <p>I'm working on an HTML form that may take a few seconds to submit. I'd like to disable some of the fields in the form <em>after</em> it's submitted.</p>
  
  <p>I can do this in a handler on the form's <code>submit</code> event, but this fires <em>before</em> the form submits. If I disable the controls then, their values aren't included in the post data sent to the server.</p>
  
  <p>I've tried cancelling the submit event in my handler, removing my <code>submit</code> event handler from the form, submitting the form myself via JavaScript, and <em>then</em> disabling the controls, but the problem there is that I need to know which button the user clicked on to submit the form. This information is in the original form submit, but obviously isn't in the one I trigger manually (as no button was clicked).</p>
  
  <p>I could try to copy this information into my manual form submit, but is there a way to run my disabling code after the form submits?</p>