Confirm navigation chrome

Confirm navigation chrome DEFAULT

Bypass "Confirm Navigation" Dialog in Chrome

I'm having a problem in Google Chrome where I am prompted with that annoying "Confirm Navigation: Leave Page / Stay On Page" dialog when I am leaving my HTML page (I'm thinking it may have to do with the fact that my HTML page has executed some JavaScript code).

I have actually had a similar problem a month ago where Chrome wanted a confirmation upon page redirect using the method, but this issue has already been resolved by adding into the same function as the redirect code -- with many thanks to this forum :D

I'm not actually looking for anything on how to disable the feature in Chrome per se, but I am looking to bypass the dialog programmatically in JavaScript (preferrably not jQuery). Does anyone have any ideas on how to approach this, perhaps when the page is leaving?

I have tried using the event trigger , but that does not seem to work. Thanks immensely in advance!

asked May 29 '14 at 9:16


21711 gold badge33 silver badges1616 bronze badges


How to Stop Leave Site Dialogues on Google Chrome. (Navigation Confirmation Blocker)

If you happen to be using Google Chrome to browse a range of different websites that ask for a navigation confirmation, requests such as “This page is asking you to confirm that you want to leave - data you have entered may not be saved.” This article will show you how to disable them entirely, so you can navigate away from pages without having to confirm. 


How to Make the Search Box on the New Tab Page in Chrome Work. (Not Redirect to the Address Bar)

Nearly all of us who work in a digital space would have to agree that apps and programs asking for confirmation before closing a project or document is a godsend. Saving potential heartache and double handling in doing so. I’d also be pretty confident in guessing that turning this feature off within programs and apps is something no one would ever consider doing.

When it comes to websites, however, an offer of confirmation isn’t always as welcome, though does still have the same benefits on pages that store a lot of data. If you are into cryptocurrency you’ll be familiar with TradingView and its constant confirmation requests when moving around the website. You’ll also be familiar with Gmail doing the same when you try to navigate away from the page. Even if you don’t currently have a new email open.

Related: How to Fix Google Chrome and/or Microsoft Edge Chromium 'Aw, Snap! Something went wrong while displaying this webpage' When Endpoint Protection is Enabled.

How Do You Get Rid of “This page is asking you to confirm that you want to leave - data you have entered may not be saved” Prompts From Websites?

Thankfully this issue can be resolved quickly and easily and doesn’t require you to access Google Chrome’s advanced options menu. Instead, all you have to do is add an extension from the Chrome Web Store to your browser. The extension is called Navigation Confirmation Blockerand works as soon as it is installed, not requiring any input for it to start working across all websites.

At this stage, the extension is a one size fits all option and doesn’t allow you to whitelist websites that you would like to keep the feature active for. That said, this feature is planned for future versions so make sure you keep an eye out for it. Well, that wraps up this guide, we hope it’s helped out a little. Just make sure you don’t forget you have the extension installed the next time you have an important document open. You don’t want to lose hours of work because of a simple mistake. If you are receiving these notifications from websites that don’t normally display them, check your extension list for any unwanted extensions that may have installed themselves on the sly. If you find any, make sure you do a full system-wide scan as well. 

On a Side Note…

If you haven’t already taken advantage of it, make sure you turn on Password Leak Detection in Google Chrome. A new Chrome feature that has been designed to alert you if the password you are using has been found in a data breach. A quick and easy way to add an extra layer of protection to your Internet browsing experience. 

How to Enable Password Leak Detection on Google Chrome.

  1. Joshua 11 niv
  2. Huawei phone camera
  3. Rigour osrs


The HTML specification states that authors should use the method instead of using to prompt the user. However, this is not yet supported by all browsers.

When this event returns (or sets the property to) a value other than or , the user will be prompted to confirm the page unload. In older browsers, the return value of the event is displayed in this dialog. Starting with Firefox 44, Chrome 51, Opera 38, and Safari 9.1, a generic string not under the control of the webpage will be shown instead of the returned string. For example:

  • Firefox displays the string, "This page is asking you to confirm that you want to leave - data you have entered may not be saved." (see bug 588292).
  • Chrome displays the string, "Do you want to leave this site? Changes you made may not be saved." (see Chrome Platform Status).

Internet Explorer does not respect the return value and will display this to users as "null" text. You have to use to skip the prompt.

In some browsers, calls to , , and may be ignored during this event. See the HTML specification for more details.

Note also, that various browsers ignore the result of the event and do not ask the user for confirmation at all. In such cases, the document will always be unloaded automatically. Firefox has a switch named in about:config to enable this behavior. As of Chrome 60, the confirmation will be skipped if the user has not performed a gesture in the frame or page since it was loaded. Pressing F5 in the page seems to count as user interaction, whereas mouse-clicking the refresh arrow or pressing F5 with Chrome DevTools focused does not count as user interaction (as of Chrome 81).

Google Chrome Confirm Navigation Glitch on Facebook


instructs the browser to display a dialog with an optional message, and to wait until the user either confirms or cancels the dialog.

Under some conditions — for example, when the user switches tabs — the browser may not actually display a dialog, or may not wait for the user to confirm or cancel the dialog.



A string you want to display in the confirmation dialog.

Return value

A boolean indicating whether OK () or Cancel () was selected. If a browser is ignoring in-page dialogs, then the returned value is always .



firefox confirm


Dialog boxes are modal windows — they prevent the user from accessing the rest of the program's interface until the dialog box is closed. For this reason, you should not overuse any function that creates a dialog box (or modal window). Regardless, there are good reasons to avoid using dialog boxes for confirmation.


Browser compatibility

BCD tables only load in the browser

See also


Chrome confirm navigation


11 Chrome Settings You Should Change Now!


Now discussing:


273 274 275 276 277