3 ms·
The dialog HTML element[0] obviates the JS point but I don’t think it’s available in all browsers. I think there are still many considerations with this approac
by lcnPylGDnU4H9OF 3y ago
The dialog HTML element[0] obviates the JS point but I don’t think it’s available in all browsers. I think there are still many considerations with this approach but many things also work out of the box.
[0] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog https://developer.mozilla.org/en-US/docs/Web/HTML/Element/di...
- lelandfe 3y agoIt's been widely available since 2022, when Firefox and Safari landed support https://caniuse.com/dialog https://caniuse.com/dialog