Is there a way in javascript to show a warning and give the user the option to cancel before closing the browser / tab in mobile safari? Since onbeforeunload is not supported, I'm wondering if there is another way to terminate the process?
source
to share