Y
Hacker News
new
|
ask
|
show
|
jobs
by
codethief
559 days ago
Could you elaborate on what you mean by "normal close in most examples"? All the examples I see come with a JS snippet to add an event listener to the close button and those work for me in Firefox for Android.
1 comments
extra88
558 days ago
As the MDN article documents, you don't necessarily have to use JavaScript:
```HTML <form method="dialog"> <button>Close</button> </form> ```
link
```HTML <form method="dialog"> <button>Close</button> </form> ```