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

搜尋 Mozilla 技術支援網站

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

了解更多

Why can't I use right click menu in Alert Dialog?

more options

Why can't I use right click menu in Alert Dialog? I select the text in an alert dialog but when I press right click the menu will not show up. I works in Chrome. Why not in Firefox? Any way to have it work?

Why can't I use right click menu in Alert Dialog? I select the text in an alert dialog but when I press right click the menu will not show up. I works in Chrome. Why not in Firefox? Any way to have it work?

被選擇的解決方法

You have many choices to submit feature suggestions, depending on your desired style of interaction:

Discussion Sites/Advocacy

Bug Tracking System

從原來的回覆中察看解決方案 👍 0

所有回覆 (7)

more options

Do you mean a

window.alert('Some text');

dialog?

You can press Ctrl+c to copy the selected text.

I don't think there are any other applicable actions that would appear on a menu. What did you have in mind?


Your Firefox identified itself as version 81, while the current release is version 87. Are you holding off on updating for a specific reason?

more options

I mean <input type="button" onclick="alert()"> And, yes Ctrl+C is working. But I am missing the right click menu in FireFox.

more options

Chaperon said

I am missing the right click menu in FireFox.

Agreed, there is no right-click context menu. However, the only thing I can think of that would be applicable from the menu is Copy, and maybe Select All.

There are keyboard shortcuts for those, so I suspect enabling a menu would be a low priority (that's a guess, it's not my decision).

What the dialog needs is a button like "Close this tab, I'm annoyed by all these alerts" but I'm not sure that would fit. ;-)

more options

Yes, for the Copy. I often use a website which shares information via Alert Dialog which I need to copy and use in another application. And it is (would be) much more convinient and faster in my case if I had right click menu (then double/triple clicking to select text and) Copy because I would need one hand only for this task, while I could prepare my other hand to press Alt+Tab to switch to the other application (without repositioning hand/fingers from Ctrl+C). Thank you for your comments anyway!

由 Chaperon 於 修改

more options

Each site might be different, but Ctrl+A Ctrl+C works for me, which is not too bad. Of course, this could by why my wrists and arms hurt so much lately!

more options

How can I submit a suggession to the developers? Maybe they consider implement it. I cannot be the only one who is missing this option.

more options

選擇的解決方法

You have many choices to submit feature suggestions, depending on your desired style of interaction:

Discussion Sites/Advocacy

Bug Tracking System