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
It's an asynchronous call.
However, at some point, the new page will load, and your page will be destroyed.