3 ms·
Accidentally leaving a form in progress? I believe closing gmail browser window while composing a message would show a popup. I use it in an app where editing
by andrei_says_ 8y ago
Accidentally leaving a form in progress?
I believe closing gmail browser window while composing a message would show a popup.
I use it in an app where editing an item locks it for everyone else and to unlock it, one needs to save or cancel the edit. So closing the browser tab while editing shows a warning.
Edit: I was corrected by the comment below. Had in mind a different function.
- strictnein 8y agoThat's not the window.open() call, which doesn't stop the browser window from closing. It's (I believe) a window.confirm call: https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm https://developer.mozilla.org/en-US/docs/Web/API/Window/conf...