我刚开始制作firefox(web)扩展名/插件。太棒了但是无法真正找到它如何转到活动选项卡中的URL。当我执行document.open('https://www.github.com','', 'noopener=true');时,它将打开一个新的弹出窗口。但是最好在同一个标签中找到另一个链接。
document.open('https://www.github.com','', 'noopener=true');
谢谢:),
大安
不是活动选项卡,但无论如何:)
document.location.href =“ https://www.gitlab.com”;