搜尋 Mozilla 技術支援網站

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

Learn More

Open New links in same tab

  • 1 回覆
  • 1 有這個問題
  • 17 次檢視
  • 最近回覆由 jscher2000

more options

My browser opens new links in new tabs. I want them to open new links in the same tab.

Others inquire about the same issue get a response saying:;

"Did you try it? Some sites add a target="_blank" attribute to links. Links with these attributes are supposed to open in a new window when left clicked. However, Firefox by default opens these links in a new tab in the current window. By setting browser.link.open_newwindow to 1, these links will instead open in the current tab/window."

I need step-by-step help understanding what I need to do to set the browser are suggested in the above response.

所有回覆 (1)

more options

Here is the step-by-step:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste browser.link.open_newwindow and pause while the list is filtered

Firefox will display several preferences with related names

(3) Double-click the browser.link.open_newwindow preference to display an editing field, and change the value to 1 then press Enter or click the blue check mark button to save the change.

What the different values do:

  • 3 = divert new window to a new tab instead (default)
  • 2 = allow link to open a new window
  • 1 = force new window into same tab replacing the current page <== select this

(4) Double-click the browser.link.open_newwindow.override.external preference to display an editing field, and change the value to 3 then press Enter or click the blue check mark button to save the change.

What the different values do:

  • -1 = apply the setting under (3) to external links (default)
  • 3 = open external links in a new tab in the last active window <== select this
  • 2 = open external links in a new window
  • 1 = open external links in the last active tab replacing the current page

More info on about:config: Configuration Editor for Firefox.

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題