Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Learn More

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

How to open local HTML files in a new tab instead of a new window?

more options

Firefox version: 95.0.2 (64-bit) OS: macOS 10.15.7

Any way to force all HTML files to open in a new tab rather than a new window? This really could be annoying when you are working on several local HTML files at once :(

Firefox version: 95.0.2 (64-bit) OS: macOS 10.15.7 Any way to force all HTML files to open in a new tab rather than a new window? This really could be annoying when you are working on several local HTML files at once :(

Keazen oplossing

You can override how external links are opened via the browser.link.open_newwindow.override.external pref. If this pref has the default value -1 then browser.link.open_newwindow is used. The meaning of the value of browser.link.open_newwindow.override.external is the same as of browser.link.open_newwindow

  • 1:current tab; 2:new window; 3:new tab;

So new Tab should be: about:config => browser.link.open_newwindow.override.external = 3

You can open the about:config page via the location/address bar. You can click the button to "Accept the Risk and Continue".

DISCLAIMER: modifying prefs directly via the about:config page is not officially supported and there is no guarantee that this will keep working in future releases or otherwise "breaks" Firefox.

Dit antwurd yn kontekst lêze 👍 1

Alle antwurden (3)

more options

One thing to look at is in Tools -> Settings -> General Tab and check the box next to Open links in tabs instead of new windows in the Tabs section.

To force other things into new tabs, go to about:config and change the following to true:

  • browser.search.openintab
  • browser.tabs.loadBookmarksInTabs
  • browser.urlbar.openintab

WARNING: Changing preferences through this interface not officially supported Hidden settings edited using the about:config tool are explicitly not supported, which means that Mozilla makes no guarantees they will be supported in the future, or that Mozilla will fix them if they break. Mozilla does not test these preferences, and will not in the future. That includes security and performance testing which these preferences may affect.

[Warning added by moderator]


Hopefully that helps, Mark H.

Bewurke troch Chris Ilias op

more options

Keazen oplossing

You can override how external links are opened via the browser.link.open_newwindow.override.external pref. If this pref has the default value -1 then browser.link.open_newwindow is used. The meaning of the value of browser.link.open_newwindow.override.external is the same as of browser.link.open_newwindow

  • 1:current tab; 2:new window; 3:new tab;

So new Tab should be: about:config => browser.link.open_newwindow.override.external = 3

You can open the about:config page via the location/address bar. You can click the button to "Accept the Risk and Continue".

DISCLAIMER: modifying prefs directly via the about:config page is not officially supported and there is no guarantee that this will keep working in future releases or otherwise "breaks" Firefox.

more options

Solved. Thank you guys!