Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Does anyone know how to make Firefox warn me when I hit Close on a single tab?

  • 4 trả lời
  • 1 gặp vấn đề này
  • 17 lượt xem
  • Trả lời mới nhất được viết bởi PGannon

more options

Does anyone know how to make Firefox warn me when I hit Close on a single tab? Occasionally I accidentally hit the "X" on a single tab that I didn't intend to close. I've searched Help with [warn close "single tab"] but very apparent that putting 2 words in quotes does NOT require them to be together in the search. It returns 106 pages! I saw that it was do-able in older versions of Firefox but since they changed the field to True or False you can't put a 2 in it. I think Firefox is great except for this very irritating flaw. Thank you..

Giải pháp được chọn

There is no built-in feature for this now and I can't remember one before. Do you mean if it's the last tab and Firefox would close?

For many pages, you can recover by using Undo Close Tab -- either right-click a different tab and click that on the context menu, or press Ctrl+Shift+t to restore the last closed tab. But some pages will reload and discard your form input, so that's a nightmare. There are some add-ons to help with that which you could look at, such as the following (I have not tested them myself in recent years):

Or, another idea:

You may have seen from time to time that a site asks if you mean to leave. (For example, if you start a comment on Reddit and decide to close the page.) This is an in-page script, but in theory you could inject it into other pages where you want a warning about closing or leaving accidentally. I wouldn't want to click that box all day every time I navigate a tab, so it would make the most sense to only do it on pages where you care about losing data, and not just everywhere you type into a form (like every search).

I might experiment with that.

Finally, you can try the Advanced Search feature here: https://support.mozilla.org/search/advanced

Đọc câu trả lời này trong ngữ cảnh 👍 1

Tất cả các câu trả lời (4)

more options

Giải pháp được chọn

There is no built-in feature for this now and I can't remember one before. Do you mean if it's the last tab and Firefox would close?

For many pages, you can recover by using Undo Close Tab -- either right-click a different tab and click that on the context menu, or press Ctrl+Shift+t to restore the last closed tab. But some pages will reload and discard your form input, so that's a nightmare. There are some add-ons to help with that which you could look at, such as the following (I have not tested them myself in recent years):

Or, another idea:

You may have seen from time to time that a site asks if you mean to leave. (For example, if you start a comment on Reddit and decide to close the page.) This is an in-page script, but in theory you could inject it into other pages where you want a warning about closing or leaving accidentally. I wouldn't want to click that box all day every time I navigate a tab, so it would make the most sense to only do it on pages where you care about losing data, and not just everywhere you type into a form (like every search).

I might experiment with that.

Finally, you can try the Advanced Search feature here: https://support.mozilla.org/search/advanced

Hữu ích?

more options

I did an advanced search and found this answer from cor-el:

set this pref to false on the about:config page to prevent closing window when you close the last tab.

 browser.tabs.closeWindowWithLastTab

For help using the about:config page, see the Configuration Editor for Firefox article.

Hữu ích?

more options

P.S. (from another answer I found) With that setting, when you close the last tab in a window, Firefox should open a new tab to keep the window open. Then you can undo the close tab.

Hữu ích?

more options

jscher2000, thank you so much. I did not know about the "Undo Close Tab" option. It completely solves my problem. Thanks again and again and again.

Hữu ích?

Đặt một câu hỏi

Bạn phải đăng nhập vào tài khoản của bạn để trả lời bài viết. Vui lòng bắt đầu một câu hỏi mới, nếu bạn chưa có tài khoản.