JavaScript: get IE to open a new tab instead of a window?

I want the script to force the Internet Explorer user to open a new tab instead of a new window whenever someone clicks on the link (target = "_ blank") on my web page.

I hate how Internet Explorer opens new windows by default instead of new tabs when clicking a link / banner. All other popular browsers (e.g. Chrome, Opera, Firefox) open tabs by default.

Preferably, this script works in all versions of IE that support tabs.

So ... How to make IE open a new tab instead of a window using JavaScript, what is the default behavior?

+5
source share
2 answers

It's impossible; this is a browser setting / behavior that cannot be called from a script loaded on a page.

Programmatically open new pages on tabs

+2
source

In IE11, at least the default user parameter is: “Let Internet Explorer decide how pop-ups should open” (Off-hand, I'm not sure what the default was in previous versions). Some IE behavior context with this default value can be found here: https://superuser.com/questions/713743/what-rules-apply-when-ie9-decides-how-to-open-popups

/ , , , -, , . , ( IE11 !), , , window.open( ) . , , IE , specs () ( undefined < - !) , IE .

, , , . " " !

Chrome, , specs - null undefined, .

0

All Articles