3 ms·
I didn't need any JS here: <dialog open> <p>Greetings, one and all!</p> <form method="dialog"> <button>OK</button> </form> </dialog>
by spartanatreyu 2y ago
I didn't need any JS here:
<dialog open>
<p>Greetings, one and all!</p>
<form method="dialog">
<button>OK</button>
</form>
</dialog>
- robertoandred 2y agoAnd if you don’t want it open when you load the page?
- spartanatreyu 2y agoget rid of the open attribute