7

Opening target ="_blank" links in a new tab or new window is based on user settings, and when I click on a target ="_blank" link, it opens in a new window (IE9). However in Bing, when clicking "see full size image" it opens in a new tab! (you can test it now)

How are they doing this?

k-den
  • 853
  • 13
  • 28
W2-S
  • 119
  • 2
  • 13

2 Answers2

2

I have IE 9.0.8112.16421

It opens links in the next tab.

<A href="http://msn.com" target="_blank">link</A>
<A href="http://jsfiddle.net/img/logo.png" target="_blank">image</A>

<span onclick="window.open('http://msn.com', 'openWindow', 'top=0, left=10,  width = 500, height = 500,resizable=yes, location=yes, toolbar=yes, status=yes')" style="text-decoration:underline;color:blue;cursor:pointer;">linkJavascript</span>

​And only in the third implementation, ONLY with params(Top, Left, Width etc) for window.open javascript function, link was opened in the new window. DEMO

I think this article might help you to configure your IE9 and resolve this issue. How to only open links in new tabs?

Eugene Trofimenko
  • 1,611
  • 1
  • 13
  • 19
0

There is an alternate target called "_tab":

<a target="_tab" .. >

I don't know if that overrides your settings or whatever, but use IE's developer tools to explore what's going on there. (Maybe IE has an inspect element context menu option?

jpaugh
  • 6,634
  • 4
  • 38
  • 90