After clicking on a button I want to fire an Ajax call and then redirect to other pages without waiting the ajax result. Is it possible? My code as follow:
$('button').click(function(){
$.get('mailer.php', function(){
window.location.replace("result.php");
});
});
The code above will wait for the ajax result before redirection. Can I just let the ajax run at the back and move on to other pages?