简体   繁体   English

如何在Internet Explorer的新标签页中打开网页?

[英]How to open webpages in a new tab in internet explorer?

In my html code there are several link like this: 在我的html代码中,有几个像这样的链接:

<a href="www.exampe.com" target="_blank">example</a>

Is there a way to open these links in a new tab ( and not in a new window ) ? 有没有办法在新标签页(而不是在新窗口)中打开这些链接?

You cannot control the preference the user has set in their browser. 您无法控制用户在浏览器中设置的首选项。 You might consider adding some text like 您可以考虑添加一些文字,例如

"Hold down the Ctrl key and click the following link" “按住Ctrl键并单击以下链接”

If the user follows your suggestion, the page will open in a new tab. 如果用户遵循您的建议,该页面将在新标签页中打开。 None of this is optimal. 这些都不是最优的。

See HTML: how to force open links in a new tab for more. 请参阅HTML:如何在新标签页中强制打开链接

target="_blank" attribute should open that page in a new tab. target="_blank"属性应在新标签页中打开该页面。 It probably depends on your browser settings whether the page opens in a new tab or window. 该页面是否在新标签页或窗口中打开,可能取决于您的浏览器设置。

There is no way to do this, short of a browser plugin. 缺少浏览器插件,无法执行此操作。

That is for a reason. 那是有原因的。 You do not want to take the user somewhere they don't want to be. 您不想将用户带到他们不想去的地方。

They may not want to be in Internet Explorer. 他们可能不想加入Internet Explorer。

What you SHOULD do is suggest that your website may only be compatible with IE. 您应该做的是建议您的网站可能仅与IE兼容。 This way, the user can only blame themselves if something does not work. 这样,如果某些事情不起作用,用户只能责怪自己。 Not ideal, but it's generally accepted practice. 这不是理想的方法,但这是公认的做法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用JavaScript在Internet Explorer 8的Tab中打开新页面 - Open new page in Tab on Internet Explorer 8 with javascript 在 Internet Explorer 中使用 selenium 的 JavascriptExecutor 打开一个新选项卡 - Open a new tab using JavascriptExecutor of selenium in Internet Explorer 如何在Internet Explorer中的新窗口中打开URL - How to open a url in a new window in Internet Explorer 在同一标签中打开多个网页 - open multiple webpages in same tab 在 Internet Explorer 的新选项卡中打开链接时,SessionStorage 不为空 - SessionStorage is not empty when link opened in new tab in Internet Explorer 如何在Internet Explorer弹出窗口中打开小书签 - How to open bookmarklet in Internet explorer popup window 当仅在新窗口中使用javascript并在同一选项卡中使用另一个javascript单击单选按钮时,如何打开多个网页 - How can I open multiple webpages when radio button is clicked using only javascript one in new window and other in same tab 如何重新加载已打开我们网页的浏览器的每个标签 - how to reload every tab of browser which have open our webpages 如何在Internet Explorer的标签容器中使用JavaScript更改标签 - How to change tab using javascript in a tab container in Internet Explorer 如何计算Internet Explorer中的新行? - How to count new lines in Internet Explorer?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM