3 ms·
Definitely a `window.onbeforeunload = () => "Are you sure you want to close this browser tab"` missing, or override the keyboard input completely, so it doesn't
by diggan 3y ago
Definitely a `window.onbeforeunload = () => "Are you sure you want to close this browser tab"` missing, or override the keyboard input completely, so it doesn't try to close the tab.
Same problem exists for all browser shortcuts inside the OS.
- stretch07 3y ago> window.onbeforeunload = () => "Are you sure you want to close this browser tab" besides the fact that now all browsers just display the uninformative "Your unsaved data may be lost" rather than any custom message, this would be a perfect addition.