Yes.
document.forms[0].submit()
represents the 1st form on the page. And this is a typical way to submit a non-ajax form. But the term βnon ajaxβ is misleading in your question, so the βPOSTβ willow is a simple http verb. And there is no difference in using its "ajax" -way or "non-ajax". An artificial distinction that could be made is: "application / x-www.formurlencoded" is the preferred browser format or "application / json" as you do it with "ajax".
PS: It is difficult to answer your question. Of course, you could avoid dynamically creating the form element; but you must use the form element anyway to make the non-adhesive submit.
source share