Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on "Are you sure?" popup when closing a page

Parent

"Are you sure?" popup when closing a page

+3
−3

When I close a window while writing an answer, it closes immediately without any popup.

This has resulted in me losing a few answers while writing them midway.

The feature I'm asking for is an "Are you sure you want to close/navigate off this page?" popup whenever there's text in an answer field.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

General comments (9 comments)
Post
+4
−0

I accidentally closed a tab with a question and lost some changes so I do feel your pain.

However, if we are going to fire an event on window exit I would much rather it be saving the draft in its current state.

That would avoid the popup and save your answer which should solve the problem.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

General comments (2 comments)
General comments
Razetime‭ wrote almost 4 years ago

+1, Yes, this makes a lot of sense.

Olin Lathrop‭ wrote almost 4 years ago · edited almost 4 years ago

How did the auto-save not work for you? At least with the browser I use (Edge on Win10), it seems to save within a second or two of making a change. That means I can't lose more than a couple seconds of work if I suddenly closed the window by mistake. What happened in your case to defeat this mechanism?