Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

how do i turn off the request to confirm navigation away from this page

more options

How does one disable the annoying confirm navigation request?

How does one disable the annoying confirm navigation request?

Chosen solution

It's too bad some sites abuse this scripting feature. In many cases, it can prevent you from losing data in a form that's partially filled in but not submitted.

Firefox has an on/off switch that can't distinguish between good and bad uses. If you want to block all dialogs linked to the "before unload" event, here's how you can do it:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste unload and pause while the list is filtered

(3) Double-click the dom.disable_beforeunload preference to switch it from false (sites can use it) to true (sites cannot use it)

Then you can test where you had a problem to see whether that works around it. Success?

Read this answer in context 👍 1

All Replies (1)

more options

Chosen Solution

It's too bad some sites abuse this scripting feature. In many cases, it can prevent you from losing data in a form that's partially filled in but not submitted.

Firefox has an on/off switch that can't distinguish between good and bad uses. If you want to block all dialogs linked to the "before unload" event, here's how you can do it:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste unload and pause while the list is filtered

(3) Double-click the dom.disable_beforeunload preference to switch it from false (sites can use it) to true (sites cannot use it)

Then you can test where you had a problem to see whether that works around it. Success?