I’m trying to find a way to warn the user that he is about to leave the web-app, either by closing the browser, by clicking Back or by entering a new URL.
I have tried different solutions using WebApplication.Close and WebSession.Close, but I can’t figure out how to do it.