我有来自第三方开发人员的JavaScript文件.它有一个链接,用目标替换当前页面.我想在新标签页中打开此页面.
这是我到目前为止:
if (command == 'lightbox') { location.href="https://support.wwf.org.uk/earth_hour/index.php?type=individual"; }
谁能帮我吗?
javascript
javascript ×1