beforeunloads

open fun beforeunloads(init: Event.() -> Unit): Listener<Event, T>

occurs before the document is about to be unloaded

Return

a Listener that emits Events on its Flow

Parameters

init

expression to manipulate the event dispatching like calling stopPropagation or similar DOM-API.


occurs before the document is about to be unloaded