為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How to stop opening links in new tabs

  • 5 回覆
  • 2 有這個問題
  • 18 次檢視
  • 最近回覆由 cor-el

more options

Whenever I do an internet search on Firefox, clicking a link will open it in a new tab. This annoys me as I soon get multiple tabs open that i need to go and close. How can I change this so clicking a link opens it in the same tab?

Whenever I do an internet search on Firefox, clicking a link will open it in a new tab. This annoys me as I soon get multiple tabs open that i need to go and close. How can I change this so clicking a link opens it in the same tab?

所有回覆 (5)

more options

Changing the following setting in about:config to 'false' may achieve that: browser.search.openintab I say 'may' because 'false' is the default value. Otherwise there is an add-on that allows you to do that: https://addons.mozilla.org/en-US/firefox/addon/stay-current/ You can also right-click and select "Open link in new tab".

由 Terry 於 修改

more options

The add-on works if I right click the link and select "open link in current tab", but it looks like the default is still opening it in a new one. Is there a way to change that?

more options

Did you look at the setting in about:config?

more options

Yeah that was already set to false, switching it didn't do anything either.

more options

For Google you can set this in the Google search settings (Where results open). Other search engines may also have a similar setting. Firefox can divert the new window to a tab via Options/Preferences.

For links that specify a target window there are prefs on the about:config page.

Normal Links:

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

JavaScript Links:

  • browser.link.open_newwindow.restriction
    0:divert always; 1:divert never; 2:divert no features