SyntaxFix
Write A Post
Hire A Developer
Questions
If I am not mistaken, it will be onunload event.
"Occurs when the application is about to be unloaded." - MSDN