Methods for manipulating <dialog> elements are available through the HTMLDialogElement interface. A dialog box or subwindow is defined by the tag <dialog>. Popup dialogs and modals are simple to construct on a web page thanks to the <dialog> element.

Attribute Value Description
open open Specifies that the dialog element is active and that the user can interact with it

Browser Compatibility

Element Chrome Edge Firefox Safari Opera
<dialog> Yes Yes Yes No Yes