SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
window.open(url, '_blank');
This will open in new tab (if your code is synchronous and in this case it is. in other case it would open a window)