3 ms·
I'm not sure why it'd be hard. "If there's a dom element that's an input of any time, and the user has focused it at any point, ask for confirmation on page exi
by onion2k 11y ago
I'm not sure why it'd be hard. "If there's a dom element that's an input of any time, and the user has focused it at any point, ask for confirmation on page exit" would work fine. The only case where I can see it being an issue would be a site that uses a select element as a menu, but I've not seen any do that in years.
- PunchTornado 11y agoI think it can easily get abused, just some hidden focused inputs
- onion2k 11y agoBrowsers already have a pageUnload event that can block a user leaving until they confirm they want to. This would effectively be the same.