After clicking the button, I want to start an Ajax call, and then redirect to other pages without waiting for the ajax result. Is it possible? My code is as follows:
$('button').click(function(){
$.get('mailer.php', function(){
window.location.replace("result.php");
});
});
The above code will wait for the ajax result before redirecting. Can I just run ajax on my back and go to other pages?
source
share