以编程方式在选项卡上打开新页面 [英] Programmatically open new pages on Tabs

查看:140
本文介绍了以编程方式在选项卡上打开新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图强迫Safari或IE7使用新标签打开新页面

I'm trying to "force" Safari or IE7 to open a new page using a new tab.

以编程方式我的意思是喜欢:

Programmatically I mean something like:

window.open('page.html','newtaborsomething');


推荐答案

你不能直接控制它,因为它是一个由Internet Explorer用户控制的选项。

You can't directly control this, because it's an option controlled by Internet Explorer users.

使用具有不同窗口名称的Window.open打开页面将在新的浏览器窗口中打开,如弹出窗口, OR 如果用户配置了浏览器,则在新选项卡中打开。

Opening pages using Window.open with a different window name will open in a new browser window like a popup, OR open in a new tab, if the user configured the browser to do so.

这篇关于以编程方式在选项卡上打开新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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