unload.html 218 B

12345678910
  1. <html>
  2. <body>
  3. <script type="text/javascript" charset="utf-8">
  4. window.addEventListener('unload', function (e) {
  5. require('fs').writeFileSync(__dirname + '/unload', 'unload');
  6. }, false);
  7. </script>
  8. </body>
  9. </html>