target=“_blank” opens a new window in IE9, instead of a new tab

人盡茶涼 提交于 2019-11-30 11:16:01

HTML and JavaScript provide no means to say if a new "window" should be a full window, or a tab, or whatever you want to call the Mobile Safari multiple views interface.

So you live with it.

VAShhh

You can see in this question that the target="_blank" is correct, but the way the browser handles this case is up to his settings.

You need to change IE8/9 settings to open that kind of target in a new tab. There's nothing you can do :|

This is configured browser side and theres nothing you can do about it in your html I'm afraid. Its just an option that a user sets in their browsers preferences.

Unchecking Protected Mode in IE9 resolved my problem.

Windows Internet Explorer 8 and later. When Protected Mode is enabled and a webpage contains an anchor link with a named target, Windows Internet Explorer opens the target of the link in a new window when the target has a different integrity level than the webpage containing the link.

Source: target attribute in IE

Markus Candido

You need to use the target="_blank" attribute to make links open in a new window or tab. Where the link actually opens is up to the browser settings. So if you have Tools > Internet Options > Tabbed Browsing Settings > "Always open pop-ups in new tabs" selected, a target="_blank" link will open in a new tab. Note that this type of link will open in a new window by default on most browsers.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!