JS autosave function handler


/ Published in: JavaScript
Save to your folder(s)

A way to call a function before the window is unloaded/refreshed/etc. Used in the first E-shot Management System. Useful for auto-saving data/content before the window is closed or refreshed.


Copy this code and paste it in your HTML
  1. window.onbeforeunload = function_name;

Report this snippet


Comments


You need to login to view comments.