Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript: Forcing IE into opening new tab instead of window?

I want a script that makes a user's Internet Explorer open a new tab instead of a new window whenever someone clicks on a (target="_blank") link/banner on my webpage.

I hate how Internet Explorer defaults to opening new windows instead of new tabs when a link/banner is clicked. All the other popular browsers (e.g. Chrome, Opera, Firefox) open tabs by default.

Preferably this script would need to work in all versions of IE that support tabs.

So... How to, using JavaScript force IE into opening new tab instead of window, which is it's default behaviour?

like image 425
12 secs ago Avatar asked Nov 05 '22 23:11

12 secs ago


1 Answers

This isn't possible; it's a browser setting/behavior which is not callable from a script loaded on the page.

Programmatically open new pages on Tabs

like image 155
Jared Farrish Avatar answered Nov 09 '22 12:11

Jared Farrish