79396373

Date: 2025-01-29 10:22:45
Score: 2.5
Natty:
Report link

I believe this could be done using the beforeunload event. It might not catch absolutely everything, but most of the regular reloads should work with it. You can look at this more detailed answer for code examples

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Julien Ripet