Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多
已解決

Pop-up message: "this page is asking you to confirm that you want to leave - data you have entered may not be saved"

dfranzen70 replied
dfranzen70

I realize there have been several questions on this topic, even with the same subject heading.

The popup generally appears if you're trying to exit or refresh a page but haven't hit post or submit after entering data into a field. It's a good warning in case you've forgotten to do just that. I accidentally restarted Firefox after an update, and when I returned to the site I was working on I got this popup. Which makes sense, because I had entered in a ton of data and hadn't submitted it.

However, the page that I was returned to wasn't the one into which I'd entered my data - it was more of a home page for the website. I suspect this is a lost cause, but ... is it at all possible that the browser actually has that data saved somewhere and is waiting for me to complete submitting it? Or is this just a false positive?

I realize there have been several questions on this topic, even with the same subject heading. The popup generally appears if you're trying to exit or refresh a page but haven't hit post or submit after entering data into a field. It's a good warning in case you've forgotten to do just that. I accidentally restarted Firefox after an update, and when I returned to the site I was working on I got this popup. Which makes sense, because I had entered in a ton of data and hadn't submitted it. However, the page that I was returned to wasn't the one into which I'd entered my data - it was more of a home page for the website. I suspect this is a lost cause, but ... is it at all possible that the browser actually has that data saved somewhere and is waiting for me to complete submitting it? Or is this just a false positive?

所有回覆 (2)

選擇的解決方法

Yeah so you might be able to actually look around the site in element inspector, but that might be a little overwhelming unless you're comfortable around websites' source code.

The (good) thing is — Firefox session store does indeed repopulate form fields upon restart, even when they're not now visible on that page; the complication here is that the site apparently has to run some scripts first to expose these forms to you as a user — the components are still there somewhere, just perhaps not visible to you at this point.

I'd go into menu "More Tools" › "Web Developer Tools" and then try searching in the source code of the Inspector pane for some strings that you might have used in your content in case they're still there, in the inputs, even when these are not visible on the surface…

Thanks. I had actually taken a look through the Inspector pane by pressing F12 but didn't see anything familiar. I will check it the next time this happens, though. But with any luck, it won't.

I wound up re-inputting all that I had previously entered. It was free-form text, and I think that what I eventually put in was better written than the original text, so.. Win/win, I guess?

Thanks again!

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題