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?

- 35,341
- 41
- 136
- 188
-
I think you can change that in the IE9 settings. – Jonas Jul 12 '11 at 09:01
-
All answers were kind'ev correct. Thanks from all. – Saeed Neamati Jul 12 '11 at 09:18
5 Answers
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.

- 914,110
- 126
- 1,211
- 1,335
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.

- 830
- 1
- 11
- 22
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.

- 12,889
- 15
- 77
- 116

- 11
- 2
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

- 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