17

In my link, I have target="_blank" attribute, and it works in Chrome, Firefox, Opera, and of course, Safari and opens the link a new TAB. But When I click on it, in IE9 (and IE8) it opens a new window instead of being opened in a new tab. What should I do?

Saeed Neamati
  • 35,341
  • 41
  • 136
  • 188

5 Answers5

19

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.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
9

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 :|

Community
  • 1
  • 1
VAShhh
  • 3,494
  • 2
  • 24
  • 37
5

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.

noShowP
  • 830
  • 1
  • 11
  • 22
2

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.

Jamie Bull
  • 12,889
  • 15
  • 77
  • 116
1

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

crudedude
  • 166
  • 1
  • 1
  • 9
  • For me I did the opposite, client had the site in their trusted sites lists (which disables protected mode). So we asked her to remove the site from the list making it revert to the internet zone (which has protected mode on). So... ie is stupid. – Sam Apr 04 '14 at 01:45