I am trying to handle the complete event of submitting form. I prepare the form like this:
var _url="../ex/tem?sessionId="+sessId;
var form = document.createElement("form");
form.setAttribute("id", "myForm");
form.setAttribute("method", "post");
form.setAttribute("action", _url);
form.setAttribute("enctype", "multipart/form-data");
form._submit_function_ = form.submit;
var textName=document.createElement("input");
textName.setAttribute("type", "hidden");
textName.setAttribute("name", "textName");
textName.setAttribute("value", textName);
form.appendChild(textName);
document.body.appendChild(form);
and I submit it like this:
form._submit_function_();
How I can catch the complete event?