I would like to redirect users through JS with opening of a new browser popup (in Chrome/FF/Safari and IE), because after the click on the button was done I have to wait for the result of a response with the correct url.
Solutions like creating of a new popup before a request and setting the url in promise work BUT they are providing very bad User experience cause a user doesn't understand what is going on and can simple close this popup before the url would be set
Next solutions don't work for me
- async:false
- var popup = window.open("", '_blank');
$.ajax(...).done(function (data) {
popup.location.replace(data.redirectUrl);
}
also all solutions there:
Are there any other ideas? Thanks in advance