2 ms·
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
by idoubtit 2y ago
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.