Nice work, Tom! The form dialog method never even crossed my mind.
]]>The only way to close a <dialog> that’s open on page load is with JavaScript. As far as I know, there isn’t a close <button> we can drop in the game that will close a <dialog> that’s open on load.
What worked for me is a form method “dialog”, as in this example:
<dialog open>
<form method=”dialog”>
<button type=”submit”>Close</button>
</form>
</dialog>