Posted By

andyhartleeds on 09/12/07


window close autosave onbeforeunload

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


JS autosave function handler

 / Published in: JavaScript

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.

  1. window.onbeforeunload = function_name;

Report this snippet  

You need to login to post a comment.