Re:Implement window.{alert, prompt, confirm} removal from cr...
by shakna on Tuesday August 03, 2021 @09:52PM
(#28056378)
prompt & confirm are native, and so automatically and correctly work with all your accessibility software.
Most "modern" modals struggle to correctly inform a screenreader, let alone all the other accessibility tools.
So yes, I would say that 'confirm' is a far better way of doing it.
Remember: it's not about whether it's useful, it's about whether there isn't a better way to do it, because it's useful. In this case: yeah, absolute. There are way better ways.