Window.confirm without native code?

Actually all of the user-hostile behavior that window.alert and window.confirm used to have has been improved in modern browsers. A StackOverflow post from 2010 is perhaps not the best resource for this information.

For instance: https://developers.google.com/web/updates/2018/01/nic64#window-alert

For simple use-cases, window.confirm is a cheap and easy solution that is guaranteed to be accessible and consistent with the browser UI.

So is there a good way to use window.confirm with Elm?

1 Like