Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Link behavior- new tab versus opening in existing tab

  • 2 trả lời
  • 0 gặp vấn đề này
  • 5 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

I have looked at dozens of support Q and A's and have not been able to figure out how to get links to work how I think they should.

If I click on a link in a tab that opens another site I want that to open a new tab. If I click on a link that goes to a a page on the current website I want it to be in the same tab. If I click on a link in an external program then I want that to be a new tab.

I have played around with about:config settings for browser.link (there are 6) using info found here and elsewhere and no combination I have tried does what I think should happen every time. Some websites do act correctly but others pretty soon have many open tabs when all I was doing was trying to navigate the site.

I even tried the "Open link with new tab" plugin and it doesn't do what it says it can do (I have checked "Open a link to a different site on a tab").

Anyone know how to get Firefox to do what I think is the obvious way to handle it?

I have looked at dozens of support Q and A's and have not been able to figure out how to get links to work how I think they should. If I click on a link in a tab that opens another site I want that to open a new tab. If I click on a link that goes to a a page on the current website I want it to be in the same tab. If I click on a link in an external program then I want that to be a new tab. I have played around with about:config settings for browser.link (there are 6) using info found here and elsewhere and no combination I have tried does what I think should happen every time. Some websites do act correctly but others pretty soon have many open tabs when all I was doing was trying to navigate the site. I even tried the "Open link with new tab" plugin and it doesn't do what it says it can do (I have checked "Open a link to a different site on a tab"). Anyone know how to get Firefox to do what I think is the obvious way to handle it?

Tất cả các câu trả lời (2)

more options

Regardless of preferences, websites can direct that links open in the current tab or a new tab. There is a detailed answer below.

https://support.mozilla.org/en-US/questions/1365765#answer-1477990

Unless I am familiar with the website, I generally use the right-click menu which has "Open Link in New Tab". I have an extension which adds "Open Link in Current Tab".

more options

Links you open on a website that do not specify a target window will open in the same tab. You would have to hold the Ctrl key or middle-click with the mouse wheel to force opening in a new tab. Links that specify a target window can be diverted to a new tab via "Settings -> General -> Tabs".

You can modify prefs on the about:config page for finer control and set the action for external links. Normal Links:

  • browser.link.open_newwindow
    1:current tab; 2:new window; 3:new tab;

JavaScript Links and external links:

  • browser.link.open_newwindow.restriction
    0:divert always; 1:divert never; 2:divert no features
  • browser.link.open_newwindow.override.external (see browser.link.open_newwindow)