3 ms·
The point was to be able to do it without JS.
by tracker1 2y ago
The point was to be able to do it without JS.
- lelanthran 2y agoI understand, but from a pragmatic viewpoint, it is no more and no less complicated to do it with `onclick` JS than it would be to do it with some other attribute. For all practical purposes, there is no difference between the two. I understand that the `onclick` wouldn't fire in browsers where JS is turned off, but in that case (no JS) you're going to have an awful user experience using dialogs even with builtin open/close attributes for dialogs.