forms-frontend
forms-frontend copied to clipboard
Prevent Accidental Closing of Form
Description
A user can currently accidentally close a form in-progress, losing everything they have so far typed out. We should do our best to ensure that this doesn't happen.
Implementation
The browser provides an API for prompting a user before they close the tab. You may have seen on different websites.
Refer to this Stackoverflow question as well as the MDN docs for this.