<html> <head> <title>JavaScript</title> <script> window.onunload=function() { alert("unload"); } </script> </head> <body> </body> </html>