Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opening in new tab: how is 'Bing' doing this? (IE9)

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?

like image 645
W2-S Avatar asked May 17 '12 12:05

W2-S


1 Answers

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?

like image 184
Eugene Trofimenko Avatar answered Nov 15 '22 06:11

Eugene Trofimenko