Return to Snippet

Revision: 3755
at September 12, 2007 05:55 by andyhartleeds


Initial Code
window.onbeforeunload = function_name;

Initial URL

                                

Initial Description
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.

Initial Title
JS autosave function handler

Initial Tags
window

Initial Language
JavaScript