Re:Ask HN: Why do browsers still support pop up dialogs and ...
by jessriedel on Saturday May 21, 2016 @01:51PM
(#11745492)
If this is absolutely necessary, you can force the site to request permission to do this, just like getting location.
[ Parent
| on HN ]
Re:Ask HN: Why do browsers still support pop up dialogs and ...
by globuous on Saturday May 21, 2016 @04:54PM
(#11746145)
How about making it 'harder' for the user to close the browser when there is an alert being shown by a website ? For instance, if google docs throws an alert about the data not being saved, your browser could throw you a msgbox notifying you that such tab has an alert you haven't dealt with when you try to close it.
Yes, that's a lot of msgboxes, but it's a decent compromise I think. It's not like that would happen very often anyway.
Re:Ask HN: Why do browsers still support pop up dialogs and ...
by bryanlarsen on Saturday May 21, 2016 @02:13PM
(#11745568)
Google docs and Gmail and many other top 100 sites use on window unload. It wouldn't fly.