window.open可以一次打开多个标签吗? [英] Can window.open open multiple tabs at once?

查看:68
本文介绍了window.open可以一次打开多个标签吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以打开一个新窗口,但有多个标签吗?

Can I open a new window but with multiple tabs?

这样的事情:

window.open("cnn.com;foxnews.com;nyt.com");


推荐答案

标准DOM中没有tab的概念。

There's no concept of tab in standard DOM.

事实上,当您要求浏览器打开一个窗口时,它可能是一个标签,具体取决于浏览器和用户设置。

In fact when you ask the browser to open a window it might be a tab, depending on the browser and user settings.

因此,除了编写用户必须安装的扩展名外,不能,你不能这样做。

So, apart writing extensions that the user will have to install, no, you can't do that.

这篇关于window.open可以一次打开多个标签吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆