onbeforeunload

variable

var onbeforeunload: ((this: Window, ev: Event) => any) | null

Before unload event handler for the window. In Ende, this is primarily for API compatibility with browsers.