搜尋 Mozilla 技術支援網站

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

Learn More

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?

被選擇的解決方法

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

有幫助嗎?

問個問題

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