iterami/Docs.htm/common HTM Repos/core.js/core_handle_beforeunload(event)
- Can be used to ask for confirmation before the user leaves the page.
- Can be used to automatically core storage_save(args) when the user leaves the page for repos with continual progress.
- Calls event todo() if it exists, which allows repos to conditionally determine when to "event.preventDefault()".