HTML5 Please

<dialog>

Use with caution with polyfillhtml

The <dialog> element can be used to create popup dialogs or modal dialogs for web applications, and is part of HTML 5.1.

Verdict
Use with caution
Category
HTML features
Browser support
Can I Use
Works in
all modern browsers

Should you use <dialog> in 2026?

In its modal mode, it blocks all access to content behind the front-most dialog.

The majority of Google's polyfill goes towards preventing the browser from gaining focus or accessing content behind the dialog. You should consider that the preventative measures taken by the polyfill are not exhaustive, as they are not implemented natively.

Supported in Chrome 37+ and Opera 24+, tracked for Firefox.

Polyfills and fallbacks

dialog-polyfill