showing results for - "confirm closing tab"
David
28 Nov 2018
1window.onbeforeunload = function (e) {
2    e = e || window.event;
3
4    // For IE and Firefox prior to version 4
5    if (e) {
6        e.returnValue = 'Sure?';
7    }
8    // For Safari
9    return 'Sure?';
10};
11
12
queries leading to this page
confirm closing tabconfirm closing tab