Comment by spartanatreyu
5 months ago
I didn't need any JS here:
<dialog open>
<p>Greetings, one and all!</p>
<form method="dialog">
<button>OK</button>
</form>
</dialog>
5 months ago
I didn't need any JS here:
<dialog open>
<p>Greetings, one and all!</p>
<form method="dialog">
<button>OK</button>
</form>
</dialog>
And if you don’t want it open when you load the page?
get rid of the open attribute