Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: