- added onwindowunload action