beforeunload

fun beforeunload(callback: (event: Event) -> Unit): T(source)