WebSubmit: catch onbeforeunload() event
- Ask users confirmation when they are about to leave a running submission. Not enabled by default. Check websubmit_config.CFG_WEBSUBMIT_CHECK_USER_LEAVES_SUBMISSION Functions that programmatically submit forms via javascript must set Javascript variable 'user_must_confirm_before_leaving_page' to 'false'.