[英]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.