- Open Firefox and type about:config into the address bar.
- A warning message is displayed. Click on the button I accept the risks.
- Type dom.disable_beforeunload in the search field. Locate dom.disable_beforeunload in the list and double-click it. Make sure its value is where it is.
Once these steps have been completed, the problem should be fully resolved. Please note that disabling this feature may change the way some websites work on your computer. Many websites use this feature, and if you notice that some websites behave strangely, make sure that this option is reset to its original value.
10. Chromium alternatives
10.1 Impact panties in Chrome
There is another solution that can help you with the message that you want to leave this page? in Chrome. You can avoid this problem by rotating the tab you want to close. Type in the address bar chrome://crash. This should cause the tab to crash and you should be able to close it without any problems.
You can also try typing chrome://hang in the address bar. The tab and all associated scripts are frozen so you can close it without any problems. Again, it should be noted that this is only an evasive solution and not a permanent one. If this solution suits you, you will need to use it every time you want to close a website that displays this message.
10.2. Use of custom script
According to users, you can easily solve this problem in Chrome with a custom script. Before you can do this, you need to download the Tampermonkey for Chrome extension. Then just download this script and add it to Tampermonkey. Are you sure you want to keep this site after that? The error message will then no longer be displayed. It should be noted that this is an advanced solution. So, if you’re a basic user and don’t know about custom labels, you might want to skip this solution.
10.3. Use the extension Let me out
The Let Me Out extension can be a great help when an error message appears in your browser. This smart tool is able to block unnecessary popup messages when you go from one page to another.
=> Load extension.
10.4 Browser refresh
If you encounter this problem in Chrome or another browser, make sure you have the latest version installed. Sometimes your current version may contain some bugs that cause this message to appear frequently. Checking for updates in Chrome is quite easy and can be done by clicking on the Menu button in the upper right corner and selecting Help > About Google Chrome.
A new tab appears with the current version of Chrome. At the same time, Chrome checks for available updates and installs them automatically. After updating the browser, check if the problem has been resolved.
10.5. Chrome restart
This is another way to temporarily solve this problem. Depending on the users, you can temporarily interrupt the appearance of this message by simply restarting Chrome. It is a fairly simple solution, but keep in mind that it is not a permanent solution. Even if you restart Chrome, the problem reappears after a while, so you have to restart it.
Message Are you sure you want to keep this page? can be quite annoying, but in this article we’ve given you a complete and tidy guide with all the solutions that can help you fix it.
We’d like you to tell us more about it, so please leave a comment in the section below.
FAQ: More information about browser error
- Are you sure you want to keep this page?
Many users have encountered this bug, and you can find all available fixes in our manual in the section ‘Are you sure you want to leave this page? (Are you sure you want to keep this page?).
- Why do pop-ups keep appearing in Chrome?
In our article about the pop-up virus in Google Chrome for Android, you’ll learn how to solve one of the latest popup problems that keeps popping up in Chrome.
- How do I get rid of unwanted reports in Chrome?
Learn how to manage the notifications you receive with our simple guide to managing unwanted pop-ups in Chrome for Mac.
Do you still have a problem? Fix them with these tools:
This software corrects common computer errors, protects you from file loss, malware and hardware errors, and optimizes your PC for maximum performance.
Troubleshoot PC problems and remove viruses in 3 easy steps:
- Download this much appreciated PC recovery tool from TrustPilot.com (you can download it from this page).
- Click the Start scan button to scan for Windows issues that may cause PC problems.
- Click on Restore All to solve problems related to patented technologies (exclusive discount for our readers).
- Restoro has been downloaded by 0 players this month.
Editor’s comments : This article was originally published in March 2017 and revised and updated in January 2021 for timeliness, accuracy and completeness.