Comment by spartanatreyu
11 days ago
I didn't need any JS here:
<dialog open>
<p>Greetings, one and all!</p>
<form method="dialog">
<button>OK</button>
</form>
</dialog>
11 days 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