/ Published in: JavaScript
![](/img/icon_sav.png?v3)
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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
window.onbeforeunload = function_name;
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)