showing results for - "preventclosingtab"
Leelou
15 Mar 2020
1<script>
2window.onbeforeunload = function (e) {
3    e = e || window.event;
4
5    // For IE and Firefox prior to version 4
6    if (e) {
7        e.returnValue = 'Sure?';
8    }
9
10    // For Safari
11    return 'Sure?';
12};
13</script>
14
similar questions
queries leading to this page
preventclosingtab