Javascript: Confirm closing/unloading the page with the javascript event onbeforeunloadJavascript: Confirm closing/unloading the page with the javascript event onbeforeunload
In some scenarios, it is good to ask the user for confirmation if he really wants change pages and therefore lose all data entered in a form. This can be