Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2022.
The show() method of the HTMLDialogElement interface displays the dialog as a non-modal dialog.
A non-modal dialog is one where users can interact with content outside/behind the open dialog.
None.
None (undefined).
Thrown if the dialog is already open and modal (i.e., if the dialog has already been opened with HTMLDialogElement.showModal()).
The following example shows a simple button that, when clicked, opens a <dialog> using the show() method.
When the dialog is open, you can still interact with the rest of the page, including clicking the Click me button that triggers an alert.
You can click the Close dialog button to close the dialog (via the close() method).
| HTML # dom-dialog-show-dev |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jan 26, 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.