Hacker News new | ask | show | jobs
by spartanatreyu 522 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>
1 comments

And if you don’t want it open when you load the page?
get rid of the open attribute