Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
clairity
on Aug 2, 2023
|
parent
|
context
|
favorite
| on:
I'm betting on HTML
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>
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: