Created
August 4, 2017 03:53
-
-
Save vamdt/334f89adaecae36ae4452cf3788ea1a5 to your computer and use it in GitHub Desktop.
ajax async set false to make window open works
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url: "/", | |
async: false, | |
dataType: "json", | |
success: function() { | |
window.open("http://google.com", "_blank"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment