How to Enable the “Close All Tabs” Warning/Prompt in Microsoft Edge

Microsoft Edge shows the confirmation dialog below when you close the app with multiple tabs currently open. If you have dismissed the dialog after accidentally enabling the “Always close all tabs” option and clicking “Close all”, Edge will no longer show you the prompt from the next time, and the setting is saved to the registry.

Edge "Close All Tabs" Confirmation
Microsoft Edge “Close All Tabs” Confirmation Prompt

Restore Microsoft Edge “Close All Tabs” Prompt

For Edge Chromium

Open Edge Chromium and visit the page edge://flags/#edge-ask-before-closing-multiple-tabs

Alternately, you can open the edge://flags/ page and search for the option “Ask Before Closing Multiple Tabs”

Set the flag to “Enabled” and restart Edge Chromium.

Note: This flag/option is available in Edge Chromium version 89.0.774.75 and higher.

After you restart the browser, you can turn this setting on or off in Settings and more (…) → Settings → Appearance → Customize browser.

edge tab close warning flag

Enable the Ask before closing multiple tabs radio button. This option is to prevent accidentally closing multiple tabs. The browser prompts when you attempt to close the browser with tabs open.

edge tab close warning flag

For Microsoft Edge (legacy)

In the Microsoft Edge legacy version, to get back the multiple tabs closure warning when exiting Edge, you’ll need to edit the registry. Follow these steps:

  1. Start the Registry Editor (regedit.exe)
  2. Go to the following branch:
    HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main
  3. Double-click the DWORD value named AskToCloseAllTabs
  4. Set the value data for AskToCloseAllTabs to 1
  5. Exit the Registry Editor.

One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support, my reader. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded in 2005.

2 thoughts on “How to Enable the “Close All Tabs” Warning/Prompt in Microsoft Edge”

  1. I reached the correct spot in the registry, but the ‘AskToCloseAllTabs’ wasn’t there. I just installed the new version of Edge, maybe this has been removed.


Leave a Comment