How to open webpages in a new tab in internet expl

2019-06-11 04:43发布

In my html code there are several link like this:

<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 ) ?

3条回答
Melony?
2楼-- · 2019-06-11 05:10

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.

What you SHOULD do is suggest that your website may only be compatible with IE. This way, the user can only blame themselves if something does not work. Not ideal, but it's generally accepted practice.

查看更多
家丑人穷心不美
3楼-- · 2019-06-11 05:21

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"

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.

查看更多
倾城 Initia
4楼-- · 2019-06-11 05:33

target="_blank" attribute should open that page in a new tab. It probably depends on your browser settings whether the page opens in a new tab or window.

查看更多
登录 后发表回答