Run
Online Code Editor
When you click
this link
, or close the window, unload event will be triggered.