On this page
  1. <dialog>
  2. Summary
  3. Notes & Best Practices
  4. Example

<dialog>

Prev: interactive | Up: interactive | Next: `<details>`
Rel: interactive, Interactive & Scripting Guide
Ref: MDN Web Docs — <dialog>
Tags: #public #web #html #elements #interactive #tier/core


Summary

Native modal/non-modal dialog rendered in the browser top layer.

Notes & Best Practices

Example

<dialog id="confirm-dlg">
  <form method="dialog">
    <p>Delete this item?</p>
    <button value="cancel">Cancel</button>
    <button value="ok">Delete</button>
  </form>
</dialog>

Linked from

Related notes