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

搜尋 Mozilla 技術支援網站

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

了解更多

Middle Click To Open New Tab

  • 6 回覆
  • 2 有這個問題
  • 1 次檢視
  • 最近回覆由 krustykobb

more options

When I middle click a link (e.g. a bookmark) to open a new tab, it automatically switches to this tab, and if possible I would like to disable this. Thanks in advance :)

When I middle click a link (e.g. a bookmark) to open a new tab, it automatically switches to this tab, and if possible I would like to disable this. Thanks in advance :)

被選擇的解決方法

Sorry, I forgot about this pref that you can toggle on the about:config page:

  • about:config page: browser.tabs.loadBookmarksInBackground = true

Note that you can toggle this by holding down the Shift key and middle-clicking the bookmark/link.

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.


There are these prefs, accessible via the about:config page, to control the focus if you click a link.

  • browser.tabs.loadInBackground (normal links)
  • browser.tabs.loadDivertedInBackground (javascript)
  • browser.tabs.loadBookmarksInBackground (bookmarks)
從原來的回覆中察看解決方案 👍 1

所有回覆 (6)

more options

Hi!

Try this KB article and disable: "When I open a link in a new tab, switch to it immediately"

https://support.mozilla.org/en-US/kb/tab-preferences-and-settings

Let me know if that helps!

-Robert

more options

Hi,

This is already unchecked - the problem only appears to occur when I middle click a link bookmark in the bookmark bar, and not links within other sites

more options

Bookmarks always open immediately in a new tab (middle-click or Ctrl left-click) or the current tab (left-click) and you can't prevent that and open them in the background. Those settings only apply to links that you click on a web page.

See:

For links opened via JavaScript you can look at this pref:

more options

So there is no way that I can stop the bookmarks automatically being switched to when I open them? When I was using Chrome I would middle click a bookmark and it would load without switching to it

more options

選擇的解決方法

Sorry, I forgot about this pref that you can toggle on the about:config page:

  • about:config page: browser.tabs.loadBookmarksInBackground = true

Note that you can toggle this by holding down the Shift key and middle-clicking the bookmark/link.

You can open the about:config page via the location/address bar. You can accept the warning and click "I'll be careful" to continue.


There are these prefs, accessible via the about:config page, to control the focus if you click a link.

  • browser.tabs.loadInBackground (normal links)
  • browser.tabs.loadDivertedInBackground (javascript)
  • browser.tabs.loadBookmarksInBackground (bookmarks)
more options

Thanks - changing the load bookmarks in background option in about:config solved my problem :)