I have a web page with a form. When the user submits the form, I want the server to make the browser redirect to a different page from the form action. Right now, I am doing
Will "complete" work:
$.ajax({ type: frm.attr('method'), url: frm.attr('action'), data: frm.serialize(), complete: complete(xhr, status) { window.location.assign(xhr.getResponseHeader("Location")); } });