Two years ago, I wrote about how the alert(), prompt(), and confirm() methods were being deprecated. At the time, I lamented that there wasn’t a great replacement for any of them.
That’s no longer the case. Today, I wanted to give you a primer on the dialog element.
Let’s dig in!
The dialog element The dialog element is a native HTML element that you can use to create custom pop-up modals.