Currently on my website, users are able to submit a form using ajax. The response, indicating whether the form was successfully submitted or if there was an issue, is displayed in an alert message. However, due to the asynchronous nature of this process, if a user navigates to another page before receiving the response, the XMLHttpRequest object used for form submission is deleted and they do not receive any feedback.
I am wondering if it is feasible to keep the XMLHttpRequest object active even if a user navigates away from the page?