I'm considering building a program in PHP/MySQL that would need to save on close, next page, forward, or back. But I need to know if this is possible using JavaScript before I start.
daveVk
12:42 am on Nov 13, 2008 (gmt 0)
The onunload event or possibly the onbeforeunload ( IE only maybe ) may be suitable here.
mikeyks1
12:11 pm on Nov 13, 2008 (gmt 0)
Looking at the onbeforeunload event handler I think it will work. Thanks