I know that this is a similar question to many others, but the problem is that no solution helps.
I am trying to open a link in a new tab after the click on the button. The problem is that I always get the popup instead of new tab. Here's what I've tried so far:
var a = document.createElement("a");
a.target = "_blank";
a.href = url;
a.click();
Simple window.open doesn't work either:
window.open(url, '_blank');
Also I tried every solution from:
Open a URL in a new tab (and not a new window) using JavaScript
Any more ideas?