Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 452
Saeed Neamati Avatar asked Jul 12 '11 08:07

Saeed Neamati


People also ask

How do I force a link to open in a new tab?

You can make a HTML link open in a new tab by adding the target=”_blank” attribute. You should insert this after the link address.

How do I make a link open in a new tab instead of a new window?

To open a link in a new tab, click the link by pressing down your middle mouse button, or right-click the link and select Open link in New Tab. If your mouse has a wheel, it can be used as a button if you press down on the wheel. These methods work in all of the major Internet browsers available for Microsoft Windows.

What happens if you add target _blank to a link?

target="_blank" is a special keyword that will open links in a new tab every time. target="blank" will open the first-clicked link in a new tab, but any future links that share target="blank" will open in that same newly-opened tab.

What does target _blank do when specified in an A element?

_blank. Opens the linked document in a new window or tab.


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

like image 146
Quentin Avatar answered Sep 23 '22 15:09

Quentin


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

like image 43
VAShhh Avatar answered Sep 22 '22 15:09

VAShhh