Press enter to see results or esc to cancel.

How to prevent google chrome from closing multiple tabs

When you are researching something on google there is a chance by ending up with multiple tabs open where you can’t even check the name on the chrome TAB, when you suddenly close the chrome accidentally it can be frustrating when you accidentally close them all at once. For Chrome users, all the tabs will be closed automatically without any pop-up or notification asking if you’re sure that you want to close all tabs, or even just the last one.

Well google has some explanation on this, it explained on several help threads saying it’s just wants to have less pop-up as necessary. But think of a user who accidentally closed so many tabs, how he feels
Previously there was an extension (Chrome Tool Box By Google) which served the purpose of preventing chrome from closing from multiple tabs but that extension is no longer functions. But yes there is a workaround created by one user just to prevent chrome from closing multiple tabs accidentally.

Open this link in Google chrome. This website was mentioned in a Google help thread, and was created to prevent your chrome browser from closing multiple tabs. It mimics the behavior you see from a Gmail tab when an email is still sending.

Logic Behind Closing multiple tabs

The working, but very dirty workaround for me is to pin a tab with this URL in the Chrome window (it would have to be in every Chrome window which should not be closed automatically when hitting the close button without questioning):
It works only with activated JavaScript because it uses the window.onbeforeunload event of the Chrome browser to ask if you would really like to close the browser (in fact, it only asks for the tab, but if the tab is not closed because of your answer of the question, the whole window stays open). Maybe I can help some people with a workaround (still better than NOT asking to close the browser!)

Source: Google Thread

But the problem is you need to open the page every time you are using the chrome. So either you can bookmark it, or just make it as your home page so that every time you launch chrome browser automatically this page will be open.
You can do this by heading to Menu > Appearance section > Show Home button > click the Change link and set to the above website.

Chrome Tool Box
If you want to make your own web-page to perform this function, insert the following code into a text document and save it as a HTML file and open it in your chrome browser.

<html>
<head>
<script>window.onbeforeunload = function() { return “You are closing all tabs!”; }</script>
</head>
<body>
</body>
</html>

Note: You can pin this tab to chrome. It will automatically load when the browser open and won’t occupy much space in the top section and it will work as you wanted.

Chrome Tool Box
Please let us know if you are using any other awesome techniques to prevent chrome from closing multiple tabs by commenting below.