How to Enable Close Tabs Prompt in Microsoft Edge
The close tabs prompt in Microsoft Edge is a built-in safety warning that stops you from accidentally closing an entire window with multiple tabs open. When active, a pop-up appears to confirm your choice before the window closes. This applies to version 120 and later of the browser, and it helps you avoid losing important work by mistake.
Updates or system changes can sometimes switch this feature off without your knowledge. You can turn it back on in the browser settings in less than 30 seconds. This guide also covers a second method, the Windows Registry, for people who want to set the option system-wide. Both methods work on Windows 11 Home and Pro.
Open Microsoft Edge, click the three dots for Settings and more, select Settings, then Appearance. Toggle on “Ask before closing a window with multiple tabs” to enable the prompt. This prevents accidental closure of multiple tabs.
Use Edge Settings to Turn the Prompt On or Off
The easiest way to enable the close tabs prompt is through the main browser settings. It stops you from accidentally closing a whole window full of tabs with one click. Open Settings , go to Appearance, and turn on the switch that asks before closing a window with multiple tabs. The steps below show the exact path. You don’t need administrator rights for this method.
Here is an example of what the prompt looks like. When you click the X on a window that has several tabs open, a small dialog appears and asks you to confirm. You can then go ahead and close the window, or cancel and keep working.

If you don’t see this prompt when you close a window with several tabs, follow these steps to turn it on:
- Open Microsoft Edge. Use the Start menu or the taskbar icon if it is pinned.
- Click the Settings and more button. This is the 3 horizontal dots in the top right corner of the window. You can also press
Alt+F. A drop-down menu opens below the button.

- Select Settings from the menu. The Settings page opens in a new tab.
- Click Appearance on the left menu. If your window is narrow, the list of categories may be collapsed. Click the menu icon at the top left of the Settings page to show it. The page on the right now shows the appearance options.

- Look for the option that says "Ask before closing a window with multiple tabs" under the Customize browser section. You may need to scroll down a little to see it.
- Toggle the button On to enable the prompt. Toggle it Off to disable it. The switch changes colour when it is on. If the switch is greyed out or the page says "Your browser is managed by your organization", a policy is controlling the setting. This can include the registry value from Method 2 below. In that case you have to change or remove the policy first.

That's it! Now Edge will ask you before closing a window with multiple tabs. Edge saves the change as soon as you flip the switch, so you don't need to restart the browser. To test it, open two or three tabs and click the X in the top right corner of the window. To undo the change later, come back to this page and switch the option Off.
Use Windows Registry to Turn the Prompt On or Off
You can enable the close tabs prompt using the Windows Registry if you want to enforce the setting across your system or prefer advanced configuration methods. Open Registry Editor and go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge to create a new DWORD value named AskBeforeClosingAllTabs and set it to 1.
You can also use the Windows Registry to control this prompt. This method needs an administrator account, because the value is stored under HKEY_LOCAL_MACHINE and applies to every user on the PC. It also works on Windows 11 Home, which has no Group Policy Editor. Editing the registry by mistake can cause problems, so follow the steps carefully. Consider backing up the registry first with File Export in Registry Editor. Follow these steps:
- [ADMIN REQUIRED] Open the Windows Registry Editor. You can find it by searching for Registry Editor in the Start menu. If User Account Control asks for permission, click Yes.
- Navigate to this folder path:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge. You can expand the keys in the left pane one by one, or paste the path into the address bar at the top of the Registry Editor window and press Enter. - If you don't see the Edge folder, right-click on the Microsoft parent key and create a new subkey called Edge. To do this, choose New and then Key, type the name and press Enter. The new Edge key now appears under Microsoft. If the Policies or Microsoft keys are missing too, create them the same way, working from the top down.

- Right-click in the empty space of the Edge folder's right pane. A small context menu opens.
- Select New and then DWORD (32-bit) Value. A new entry appears in the right pane with its name ready to edit.
- Name the new value:
AskBeforeCloseEnabled. Type the name exactly as shown and press Enter. - Double-click the new value to open it. The Edit DWORD (32-bit) Value window appears.
- Enter the Value data:
1to show the prompt. Enter0to hide the prompt. - Click OK and close the Registry Editor. The value now shows your number in the Data column.

The change takes effect immediately. Edge will now show or hide the prompt based on your setting. If Edge was open while you made the change and the prompt does not behave as expected, close all Edge windows and open the browser again. A value set in this policy location can also lock the matching switch in Edge settings, so the switch may show as managed by your organization. To undo the change, set the value to the hide number, or right-click the value and choose Delete.
Summary
You can enable the prompt that asks before closing a window with multiple tabs in Microsoft Edge using either the browser's settings or the Windows Registry. The Settings method is quicker and fits most people. Use the registry method when you want one setting applied to every user on the PC.
Have a question about this guide?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
[…] If you want to prevent the accidental closure of multiple tabs, then turn on a feature to prompt you before closing multiple tabs. […]