Hacker News new | ask | show | jobs
by extra88 564 days ago
As the MDN article documents, you don't necessarily have to use JavaScript:

```HTML <form method="dialog"> <button>Close</button> </form> ```