Какие правила применяются, когда IE9 решает, как открыть всплывающие окна?

923
Martin

Я обнаружил, что когда установлен параметр всплывающего окна по умолчанию: let internet explorer decide how pop-ups should openIE9 открывает некоторые всплывающие окна в новой вкладке, а другие - в новом окне ... Звучит согласованно с параметром ... Но вопрос в том, как IE решает?

У меня есть две ссылки:

<a href="http://www.google.com" target="_blank">Link to google</a>  <a href="/somewhereOnMySite/test.html" target="_blank">Link to some other page</a> 

Первый (Google) откроется в новом окне, а второй откроется на новой вкладке ...

Я подумал, что должен искать эти правила, просто кажется, что страницы на одном сайте получают вкладку, а внешние ссылки получают новое окно ... Есть ли документация, которая может подтвердить это или иметь более подробное описание?

С уважением

4
Что происходит с JavaScript `window.open (...)`? Такая же внешняя / относительная разница? MrWhite 10 лет назад 0

1 ответ на вопрос

1
harrymc

Three Microsoft articles may apply here :

Your Tab Settings

Basically what this will do is open any pop-up without size or other restrictions in a new tab, the rest will open in a new window. For users experienced with tabbed browsing this is typically the best option, as it allows most windows to open in tabs, but allows pop-up style windows to open in a new window.

Tabbed browsing in Internet Explorer 8: frequently asked questions

If you opt to let Internet Explorer decide how to display pop-ups, it will display the pop-up in a new window if the pop-up specifies size or display requirements. Otherwise, the pop-up is displayed in a new tab.

Open OWA messages in a new tab instead of a pop-up window

The reason that it opens in a new window instead of a new tab is because the pop-up link holds window size information and disables certain browser interface elements such as menus, back/forward buttons, etc… While this does give it a more “application” look and feel, it indeed makes it harder to group all your OWA activity together.

The answer is probably that the Google page has some restrictions on its display that cause IE9 to consider it as an "application" and to open it in a new window. As the Google page contains lots of CSS and JavaScript, one can understand IE9 making that error, especially since IE9 does not support the latest CSS standards.

Google, on the other hand, dropped support for IE9 on 2013, so does not make today any effort to make its pages understandable by IE9. Officially, Google now only supports IE11.

Я не уверен, что эти последние комментарии точны. AFAIK, IE принимает решение о том, как открыть всплывающее окно, прежде чем пытаться открыть целевой адрес, так что то, что Google включает в свою страницу, не имеет значения. Кстати, я только что добавил две ссылки из OP на страницу и подтвердил, что обе они открыты как вкладки в IE11. У меня нет IE9 для тестирования (я думаю, что мы, возможно, уже забыли об IE9!). Копаться в этом сегодня, и вышеупомянутый ответ, безусловно, был [полезным] (http://stackoverflow.com/questions/5686288/javascript-forcing-ie-into-opening-new-tab-instead-of-window/41489586# 41489586) John Rix 7 лет назад 0