How to Make Chrome Warn You Before Closing
In this article
This guide shows you how to make Google Chrome display a confirmation prompt before the browser closes, so you don't accidentally lose open tabs or unsaved work. This is especially useful if you often have many tabs open or use Chrome for important tasks. You'll need a desktop version of Chrome (Windows, Mac, or Linux) and a few minutes to change a browser setting.
What You'll Need
- A computer with Google Chrome installed (desktop version).
- Administrator rights to your user account (usually not required, but helpful if settings are locked).
- Access to the Chrome menu (the three-dot icon in the top-right corner).
Step-by-Step
- Open Chrome. Launch the Chrome browser on your computer.
- Access the menu. Click the three vertical dots (⋮) in the top-right corner of the browser window to open the Chrome menu.
- Go to Settings. In the dropdown menu, select Settings. This opens a new tab with Chrome's configuration options.
- Find the "On startup" section. In the Settings tab, scroll down until you see the On startup section. It is usually near the bottom of the page. If you don't see it, use the search bar at the top of the Settings page and type "On startup".
- Choose "Open a specific page or set of pages". Under On startup, select the radio button next to Open a specific page or set of pages. This option tells Chrome to restore your chosen pages when you reopen it, which is a prerequisite for the warning to work.
- Set your startup pages. Click Add a new page and enter the URL of a page you want to open when Chrome starts. You can add multiple pages. For example, you might add
https://www.google.comor your email inbox. This step is important because Chrome will only warn you if it has something to restore—if you set Chrome to open a blank page, it won't warn you. - Enable the warning. After setting your startup pages, look for a checkbox that says Ask before closing a window with multiple tabs. This option appears only after you select "Open a specific page or set of pages". Check that box.
- Test it. Close Chrome by clicking the X (close) button on the window. A dialog box should appear: "Close all tabs?" with options like "Cancel" and "Close". Click "Cancel" to keep your tabs open, or "Close" to proceed.
Common Mistakes
- Not setting startup pages. The warning only appears if you have chosen "Open a specific page or set of pages". If you leave it on "Open the New Tab page" or "Continue where you left off", the warning won't show.
- Using the wrong close method. The warning triggers only when you close the entire Chrome window (all tabs). If you close a single tab or use keyboard shortcuts like Ctrl+W (Windows) or Cmd+W (Mac), you won't get the warning.
- Clicking "Close" out of habit. The dialog box appears, but if you automatically press Enter or click "Close" without reading, you'll still lose your tabs. Always read the dialog before confirming.
- Expecting the warning on mobile. This setting is only available on the desktop version of Chrome. Android and iOS versions do not have this option.
Tips
- Use with "Continue where you left off"? Not possible. The warning is tied to the "Open a specific page" option. If you prefer "Continue where you left off", you can't get the warning. However, you can manually restore closed tabs by pressing Ctrl+Shift+T (Windows) or Cmd+Shift+T (Mac) after reopening Chrome.
- Add a blank page as a startup page. If you don't want a specific homepage but still want the warning, add
about:blankas a startup page. Chrome will then warn you before closing, and it will open a blank tab when you restart. - Use the warning as a safety net. Even with the warning, it's a good habit to bookmark important pages or use Chrome's built-in tab groups to organize your work.
- Check for Chrome updates. The exact wording of the checkbox may change slightly with Chrome updates, but the functionality remains the same.
Troubleshooting
I don't see the "Ask before closing" checkbox.
Make sure you have selected "Open a specific page or set of pages" under On startup. The checkbox only appears after that selection. If you still don't see it, try restarting Chrome or updating to the latest version.
The warning doesn't appear when I close Chrome.
Check that you are closing the entire window (clicking the X at the top-right corner of the window) and not just a tab. Also, ensure that the checkbox is actually checked. If you have multiple windows open, the warning appears for each window separately when you close them.
I accidentally uninstalled Chrome or changed settings.
Your settings are stored in your profile. If you lose them, you can redo the steps above. If Chrome is managed by your organization, these settings might be locked, and you'll need to contact your administrator.
The warning is annoying and I want to turn it off.
Simply uncheck the "Ask before closing a window with multiple tabs" checkbox in the same settings location.
Frequently Asked Questions
Will this warning appear if I close Chrome from the taskbar or using Alt+F4?
Yes, the warning appears whenever you attempt to close the entire Chrome window, regardless of the method (clicking X, Alt+F4, or right-clicking the taskbar icon and selecting "Close window").
Does this work if I have only one tab open?
No, the warning only appears if the window has more than one tab open. If you have a single tab, Chrome closes without asking.
Can I get the warning on my phone or tablet?
No, this feature is only available on the desktop version of Chrome. Mobile browsers typically don't have this option.
What happens to my tabs if I click "Close" in the warning?
All tabs in that window are closed. However, you can reopen them by pressing Ctrl+Shift+T (Windows) or Cmd+Shift+T (Mac) immediately after reopening Chrome.
Will the warning appear if I shut down my computer while Chrome is open?
Usually, no. The warning is triggered by the browser's close action, not by the system shutting down. If you shut down your computer, Chrome may close without warning, and you might lose your tabs. To avoid this, close Chrome manually first.
Why doesn't Chrome warn me when I close a single tab?
Because closing a single tab is a common action, and Chrome assumes you intend to do it. The warning is only for closing the entire window, which affects all tabs at once.