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

No, a <dialog> element will be displayed at page load if it has the "open" attribute. There is no need for JS.

The usual handling is with the JS API, but it's possible to handle it with CSS only. For instance, display the modal window only if a checkbox is checked.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: