News for hackers. Stuff that matters.
Re:Google is considering removing alert() by plopz on Wednesday August 04, 2021 @04:27PM (#28065877)
>i'm gonna be honest, i havent seen a meaningful alert be used in recent memory, and i work with a lot of web apps.

I see them used very often to indicate unsaved changes when a user leaves a page.

Re:Google is considering removing alert() by trangus_1985 on Wednesday August 04, 2021 @06:08PM (#28067065)
that's confirm(). alert() cant block a page close in progress (by design, afaik)

I'm actually not a huge fan of the design of confirm() either, but at least that has a valid, modern use

Re:Google is considering removing alert() by lkschubert8 on Wednesday August 04, 2021 @05:20PM (#28066473)
Isnt that confirm()
Re:Google is considering removing alert() by david_allison on Wednesday August 04, 2021 @07:30PM (#28067781)
> In general all of the simple dialogs (alert(), prompt(), confirm(), and beforeunload) are deprecated and being removed slowly but surely from the web platform. They use trusted browser UI, which opens them up to abuse, and they block the event loop, which is not in keeping with the web's cooperative task model. So this is just a first step toward eventually completely removing them, which will take many years.

https://github.com/whatwg/html/issues/6897#issuecomment-8857...