News for hackers. Stuff that matters.
Re:Moral injury can occur in many contexts and populations, ... by evan_ on Tuesday February 22, 2022 @09:03PM (#30436676)
But assuming it’s just a div that appears when you mouse off at the top, it doesn’t actually do anything to stop them. It’s not outrageous for a shopkeeper to say “don’t go!” or something like that as you’re leaving.

It’s annoying and tacky but it’s not analogous to being held hostage.

Re:Moral injury can occur in many contexts and populations, ... by nickthegreek on Tuesday February 22, 2022 @09:08PM (#30436716)
In the olden days, a website could pop up a dialog box that would lock browser interaction til it was dealt with. It was abused. A lot. This was way prior to 2012 tho.
Re:Moral injury can occur in many contexts and populations, ... by menzoic on Tuesday February 22, 2022 @09:12PM (#30436759)
You've never seen this? When someone clicks to close a browser tab you can stop the tab from closing by adding a handler to the onbeforeunload() event.
Re:Moral injury can occur in many contexts and populations, ... by gruez on Tuesday February 22, 2022 @09:28PM (#30436856)
And that can be bypassed by closing the tab again.
Re:Moral injury can occur in many contexts and populations, ... by lazide on Tuesday February 22, 2022 @09:36PM (#30436898)
Yup, pretty terrible.
Re:Moral injury can occur in many contexts and populations, ... by addaon on Tuesday February 22, 2022 @09:12PM (#30436756)
2012. A modal dialog was probably a javascript alert(), which at the time was model for the whole browser and would prevent navigation until dismissed.
Re:Moral injury can occur in many contexts and populations, ... by gruez on Tuesday February 22, 2022 @09:29PM (#30436862)
I just tested with an older version of firefox (10.0, released January 31, 2012), and it had non-modal alert() dialogs.