Tech Advisor

Make Google Chrome warn you before closing

-

Chrome on Windows doesn’t offer a warning dialog before it closes. Ian Paul’s workaround will help

Personally, we don’t like browsers that display a warning dialog box whenever you try to close them with multiple tabs open. However, a lot of people do like this functional­ity, especially when they have dozens of browser tabs loaded. Unfortunat­ely for those users, Chrome doesn’t offer a warning box in Windows. If you want to see a warning before closing Chrome here’s a quick solution. Admittedly, it’s a bit of a hack, but it works.

Open the website Prevent Close (tinyurl.com/jeewg8k). This site uses JavaScript to throw up a dialog box that asks you if you’re sure you want to leave that specific website. The idea is to always leave that website tab open in Chrome, then when you click ‘X’ to close the browser, this site throws up a dialog box asking if you’re sure you want to leave that page. If you click Stay the browser window will not close, if you click Leave Chrome shuts down.

We recommend pinning this website to your browser, then moving the tab out of the way. To do that open Prevent Close and then right-click the tab with your mouse. From the context menu select Pin tab. The tab will now shrink down to a different size from the rest of the tabs. Next, grab it with your mouse and drag the tab to the far left of your browser’s tab line-up. In that spot, it should be out of your way, but it will appear every time you start up your browser and prevent accidental­ly closing Chrome when it’s loaded with dozens of tabs. Pro Tip: Chrome’s pinned tabs feature is a little tricky. Pinned tabs only appear in a single Chrome window, not every new window you open. To keep pinned tabs permanent, you need to close every other open Chrome browser window before closing the one with the pinned tab. In other words, close it last or you’ll lose it. Something to keep in mind the next time you have YouTube or Netflix open in one Chrome window while working in another.

If you’re wondering why Chrome doesn’t offer a warning dialog on Windows, the best explanatio­n we found was on a Google Chrome Help forum post. The lack of this ‘feature’ is a philosophi­cal choice. Google is focused on making its browser as fast and simple as possible, which means stripping away some features. A close dialog box is apparently one such feature. The browser does have an option to enable a ‘warn before quitting’ dialog on Mac, owing to the way keyboard shortcuts for closing windows and tabs work on that platform. Windows users, however, will have to make do with this hack.

 ??  ??
 ??  ?? Use the Pin tab option to keep Prevent Close available in Chrome
Use the Pin tab option to keep Prevent Close available in Chrome

Newspapers in English

Newspapers from Australia