3 ms·
>A real world analogue would be if I tried to leave a store and someone blocked my way to try and make me buy something. That'd depend on the implementation be
by gruez 5y ago
>A real world analogue would be if I tried to leave a store and someone blocked my way to try and make me buy something.
That'd depend on the implementation behavior. If it's using window.onbeforeunload, yeah I guess it's kind of like someone blocking you when you try to leave, although you can easily walk around them (on most browsers if you try to close the tab and the modal shows up, and you try to close the tab again it will override the modal). However, there's also another type where it tracks the location of your cursor, and shows a popup when it leaves the content area (indicating that your mouse is going to close the tab or go back). In that case it's not really blocking anything, and much more analogous to a salesperson saying "before you go" as you're walking out the door.
- lazide 5y agoEither of these behaviors is equivalent to someone standing in front of the door and trying to harass me when I leave. Which is a solid ‘no thanks, not coming here again’ from me.
- marssaxman 5y ago> much more analogous to a salesperson saying "before you go" as you're walking out the door. I would try to avoid going back to that store.
- zestyping 5y agoI would never go back to that store and I would tell my friends not to shop there.