I am just wondering if the document.myForm.submit() is a synchronous call, that will block until finished... or if it is async and will continue to execute without waiting f
The browser seems to continue to execute javascript immediately after submitting a form. In this jsFiddle example, the log statement is printed before the form is submitted.
Markup
Javascript
var button = document.getElementById('submitBtn');
button.onclick = function() {
document.forms[0].submit();
console.log('after submitting');
};