7 ms·
yah, would be nice if it were baked into html itself, but at least the javascript isn't complicated, and can be put in an `onclick` attribute: <button onclic
by clairity 3y ago
yah, would be nice if it were baked into html itself, but at least the javascript isn't complicated, and can be put in an `onclick` attribute:
<button onclick="document.querySelector('#my-dialog').showModal();">open my dialog</button>