beforeunloads

open override val beforeunloads: Listener<Event, Window>

occurs before the document is about to be unloaded