Delete Confirmation
The <dialog> element with a static open attribute renders a native modal — no JavaScript needed for the markup itself. You can style the backdrop with ::backdrop.
In a real page, JS would toggle the
open attribute.
Key details: ① set open to render, remove it to hide ② use method="dialog" on a <form> inside to auto-close on submit ③ style the dimmed overlay with ::backdrop.