I'm trying to open a URL in a new tab, as opposed to a popup window.(我正在尝试在新选项卡(而不是弹出窗口)中打开URL 。)
I've seen related questions where the responses would look something like:(我看过相关的问题,答案看起来像这样:)
window.open(url,'_blank');
window.open(url);
But none of them worked for me, the browser still tried to open a popup window.(但是它们都不适合我,浏览器仍然尝试打开一个弹出窗口。)
ask by Mark F translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…