Get Chrome & Other Browsers Warn when Closing Multiple Tabs

One of the most common causes for frustration when using a web browser is accidentally losing data you have typed into the page. Whether this is typing into an online form, commenting on a blog/forum, or writing an online document, it’s not fun when everything is wiped away. This can simply happen if you close the browser by accident by pressing X to close the window or the Alt+F4 shortcut.

While it’s possible to reopen the web pages that were previously open before the browser was closed, any data that had been typed in will be lost and you’ll have to start over. To help prevent this kind of accident several web browsers include an option that warns you if you try to close the browser when multiple browser tabs are still open.

Opera closse multiple tabs

Not all browsers have this warning though, so if it’s an important function for you, you will either need to find a workaround or use another browser that does have it. In most supported browsers it’s also easy for anybody to disable the warning prompt, so you’ll need to know how to re-enable it again. Here we show you how to get a warning popup if your browser does not have one built in or re-enable the option if it’s been disabled.

Google Chrome And Chromium

It’s quite amazing to think the world’s most used browser does not have what is a potentially important function to so many people. Despite repeated requests, Google simply refuses to implement a confirm on exit popup if multiple tabs are open, and it’s difficult to work out why they are so against the option.

Even extensions can’t provide something that works like most other browsers. Solutions have been released over the years, like Chrome Toolbox, but most have been discontinued or don’t work anymore. There are still some extensions that may be enough for your needs although they are not a true alternative to what other browsers offer as standard.

Closure

This is a very simple extension that works by locking the current browser tab. Click the toolbar icon or right click on a page and select “Confirm Closure”. The favicon for the website in the current tab will turn into a padlock

Closure tab lock

Trying to exit the browser while at least one of the tabs has the lock enabled will prevent the browser from being closed. A popup will appear asking you if you want to Leave or Cancel, leave will obviously exit and you’ll lose all open tabs and unsaved forms, etc. Optionally pin the locked tab to keep it more out of the way.

Download Closure


Lock It

Lock it is a similar extension in the way it works to Closure, by locking a tab and preventing it or the browser from closing. Install the extension and click the lock icon while in a tab to lock it. The same popup will show if you try to close the locked tab or the browser.

Lock it tabs

Lock it does have one option, which is to reopen closed tabs after they have been locked.  As long as you have one locked tab, the browser won’t accidentally close.

Download Lock it Chrome Extension


Chrome Close Lock

Chrome Close Lock does essentially the same thing as the two extensions above although it takes things a little further. When you enable it, Chrome Close Lock creates its own pinned tab. Click at least once in the tab to start the lock.

Chrome close lock

Trying to exit the browser will popup the close confirmation dialog. Disabling the locking function from the extension’s icon will remove the pinned tab. There’s some fun but rather pointless settings that allow you to change the theme background on the locked tab and the start image. DO NOT forget to click in the pinned tab’s window at least once or you risk losing valuable data.

Download Chrome Close Lock


While the above extensions are not true multiple tab warning popups, they do offer an added bonus. That is you can stop the browser closing even if only a single tab is open, most other methods only work with more than one open tab.

Chromium Based Browsers With A Built In Multiple Tab Close Warning

Many third party browsers based on Chromium do not include a close confirm option, although the list of browsers that do is growing. If this is an important function to you and you still want something based on Chromium, the browsers below are worth considering.

SlimJet

Flashpeak’s Slimjet browser has a number of features over the standard Chromium. These include built in ad blocker, integrated file downloader, photo enhancer and uploader, video downloader, and social media integration.

Slimjet multiple tabs close

The confirmation option is off by default. To turn it on, go to Settings and at the bottom in the Misc section check the box for “Confirm when closing browser with multiple tabs”. Now a popup will ask if you want to quit and tell you how many tabs will be closed if you click Yes.

Download SlimJet


Opera Browser

Opera was sold off to the Chinese back in 2016 although the browser itself is still developed in its original country of Norway. Since moving to the Chromium engine, Opera has gained some interesting features like a built in VPN, integrated ad blocker, and social media messengers.

Opera multiple tabs

There are two different options for controlling tab closures, both are enabled by default. The first will popup a warning if you have multiple browser windows open and the window you are trying to close has more than one tab. The second option will warn if you are trying to completely close Opera from the last open window with several tabs. If you only ever open one browser window, the second option is the important one.

Download Opera Browser


Vivaldi Browser

Vivaldi was created by ex-developers of Opera and it’s now a major browser in its own right. There’s more features and functions here than probably any other browser. If you love tweaking and playing with settings, Vivaldi should be high on your list of browsers to try.

Vivaldi close confirmation

Weirdly, Vivaldi actually doesn’t have a simple “warn when closing multiple tabs option” like many less feature rich browsers do. There are two options that will work though, “Show Exit Confirmation Dialog” and “Show Close Window Confirmation Dialog”. These work on one tab as well as multiple tabs and will stop a single window or multiple browser windows from closing without confirmation.

Download Vivaldi Browser


Cent Browser

Cent is one of the most feature rich browsers while not bothering with things like custom themes and fancy visual elements. Most of the added options are individually quite small but they all add up to make a big difference. The only real downside is the severe lack of regular updates in the last few years, which is a shame as we’re fans of Cent Browser.

Cent tabs close warning

The warning when closing multiple tabs option is already enabled in Cent Browser so you don’t have to do anything. If you want to disable the option or re-enable it, go to Settings and look under Tab Options. Find and enable/disable “Warn me when closing window with multiple tabs”.

Download Cent Browser


Microsoft Edge Chromium

Edge is now based on Chromium instead of being its own proprietary browser. It’s for the better though, as Edge Chromium is a pretty good browser these days and a decent alternative to Chrome, Opera, Vivaldi, and etc. It’s installed by default in more recent versions of Windows 10 and the upcoming Windows 11.

At the time of writing, this option is being integrated into Edge but depending on what build you have, you might see it or you might not. Go to Settings > Appearance, and “Ask before closing multiple tabs” should be an available toggle option.

Edge warn close tabs

If you can’t yet see the option, open Edge and copy and paste the URL below into the address bar.

edge://flags/#edge-ask-before-closing-multiple-tabs

This will open the Flags settings page with the “Ask Before Closing Multiple Tabs” option highlighted. Set it to Enabled and restart the browser. Now the option will appear in the Settings as listed above. At some point, this will not be necessary and all users should see the option in the Settings window.

Edge is also available for Windows 7, Windows 8/8.1, Windows Server, Mac, iOS, and Android.

Download Edge Chromium

Another browser that we tested with this option but haven’t mentioned above is Epic Browser. It’s worth a try if none of the others satisfy your needs. Somewhat surprising is the popular and well known Brave Browser still does not have an option to warn about closing multiple tabs.

Internet Explorer

Internet Explorer has long since been replaced by Edge in Windows 10 as the default browser, and it’s probably mostly used for compatibility testing these days. But it still has a few things even modern browsers like Chrome don’t. One of which is a simple warning when closing the browser with multiple tabs open.

Internet explorer close tabs

To disable or re-enable the warning, click on the Settings icon (Alt+X) > Internet Options and press the Tabs button.

Ie tab close warning option

The is right at the top. Simply check the “Warn me when closing multiple tabs” box and press OK. This will make the popup return when closing Internet Explorer.

Mozilla Firefox And Firefox Based Browsers

Firefox has the simple ability to warn you about closing multiple tabs, and has had it for a long time. As it’s is built into Firefox, that also means most third party browsers based on Firefox also have the option as well. These include Pale Moon, Waterfox and Cyberfox.

Firefox close multiple tabs

The popup window also tells you how many tabs are currently open if you didn’t realize there were so many. To get the popup back if it has been disabled, go to Settings in the menu and the check box “Warn me when closing multiple tabs” will be available under Tabs on the General page.

Firefox close tabs warning

Note the option to re-enable the warning only becomes visible after you have unchecked the box on the close confirmation popup in the first place.

Download Mozilla Firefox

A Simple Way To Prevent Closing Tabs in Most Browsers

If your web browser doesn’t have the option to warn you when closing multiple browser tabs at once, or for some reason, the popup isn’t appearing when it should, here’s something else to try. Simply open this webpage in a tab and leave it open. Note you have to click inside the window at least once or it will not work on Chromium based browsers.

Preventclose

The idea is quite simple, the page includes a line of Javascript that pops up a warning box if you try to close its tab. If you press Leave, the browser and all tabs will close, press Cancel, and the browser will stay open.

As the piece of code is so small you can even make and use your own local page. Create an empty .HTML file and add the following code into it, or download the pre-made HTML file.

<script>
window.onbeforeunload = function() { return “Close tab(s)?”; }
</script>

Drop the HTML file onto your browser window or set it up to load the local page on start. That way you will always be asked for confirmation when closing the browser window. While this is by no means a perfect solution it does offer a way to try and stop you from accidentally closing several tabs at once in most browsers. Optionally pin the tab to make it less intrusive.

8 Comments - Write a Comment

  1. Gabe 3 years ago
    • HAL9000 3 years ago
  2. Peter 4 years ago
    • HAL9000 4 years ago
  3. ZappedSparky 12 years ago
  4. 隼 アキラ 「Gerry」 12 years ago
  5. xpclient 12 years ago
  6. avi singh 12 years ago

Leave a Reply

Your email address will not be published. Required fields are marked *

Note: Your comment is subject to approval. Read our Terms of Use. If you are seeking additional information on this article, please contact us directly.