Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

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

搜尋 Mozilla 技術支援網站

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

了解更多

command + click does not open links in new tabs

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

more options

The typical expected behavior is that when I use Command key plus clicking on a link it should open in a new tab.

I am on OSX, I do not have a quick way to see if this problem happens for Ctrl+click on Windows..

But in reality, this only usually works. I am working with phpmyadmin and the phpmyadmin demo does replicate the problem.

https://demo.phpmyadmin.net/master-config/

clicking the links on the left side of the screen (databases and tables) with Command+click loads the new link in the same window, just as click by itself does.

The expected behavior is that this would always work. Strangely, I have tested this in both Safari and Chrome. Chrome gets the expected behavior correct. But Safari also does not work, just on the phpmyadmin website and not on any other.

Does anyone have any idea why this would be happening?

-FT

The typical expected behavior is that when I use Command key plus clicking on a link it should open in a new tab. I am on OSX, I do not have a quick way to see if this problem happens for Ctrl+click on Windows.. But in reality, this only usually works. I am working with phpmyadmin and the phpmyadmin demo does replicate the problem. https://demo.phpmyadmin.net/master-config/ clicking the links on the left side of the screen (databases and tables) with Command+click loads the new link in the same window, just as click by itself does. The expected behavior is that this would always work. Strangely, I have tested this in both Safari and Chrome. Chrome gets the expected behavior correct. But Safari also does not work, just on the phpmyadmin website and not on any other. Does anyone have any idea why this would be happening? -FT

所有回覆 (1)

more options

If this is not a normal link, but a JavaScript onclick handler processes mouse click then the Command key modifier might not work. You can possibly check this via the right-click context menu in the Inspector. If there is an event label appended to this tag then this means that an onclick handler is attached.

You can right-click and select "Inspect Element" to open the builtin Inspector with this element selected.