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

搜尋 Mozilla 技術支援網站

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

了解更多

Why doesn't command-click always open links new tabs?

more options

Right-clicking on links and selecting "Open link in new tab" always works as described, but command-clicking on links only sometimes opens them in new tabs. I am guessing that it is Javascript related, but why can the contextual menu work, and not the click?

Right-clicking on links and selecting "Open link in new tab" always works as described, but command-clicking on links only sometimes opens them in new tabs. I am guessing that it is Javascript related, but why can the contextual menu work, and not the click?

所有回覆 (2)

more options

It is possible that web pages intercept the left mouse button via JavaScript and prevent opening the link in a new tab.
If your mouse has a scroll button then middle-click the link instead.

more options

Edit: You might already have this set if the right-click option always works.

By default, Firefox will divert standard new windows to a tab, but if the link actually is a script that launches a window with special parameters, like a dialog, then Firefox will honor that. There is an obscure setting to disregard those parameters and force all scripted windows into a new tab as well.

(1) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.

(2) In the filter box, type or paste link.o and pause while the list is filtered

(3) Double click these and set the value as desired:

(A) browser.link.open_newwindow

3 = divert new window to a new tab (default) (checked*)
2 = allow link to open a new window (unchecked*)
1 = force new window into same tab

* First checkbox in Options > Tabs

(B) browser.link.open_newwindow.restriction

0 = apply the setting under (A) to ALL new windows (even script windows)
2 = apply the setting under (A) to normal windows, but NOT to script windows with features (default)
1 = override the setting under (A) and always use new windows

Does that work?

由 jscher2000 - Support Volunteer 於 修改