onbeforeunloadvariablevar onbeforeunload: ((this: Window, ev: Event) => any) | nullBefore unload event handler for the window. In Ende, this is primarily for API compatibility with browsers.