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

19,216

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

Share:
19,216
12 secs ago
Author by

12 secs ago

Updated on June 07, 2022

Comments

  • 12 secs ago
    12 secs ago almost 2 years

    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?

  • Dead.Rabit
    Dead.Rabit about 8 years
    When the "Let Internet Explorer decide how popups open" option is selected, what criteria does Internet Explorer use to make this decision?
  • John Rix
    John Rix over 7 years
    @Dead.Rabit, see here: superuser.com/questions/713743/…