showModal method

void showModal()

The showModal() method of the HTMLDialogElement interface displays the dialog as a modal, over the top of any other dialogs that might be present. It displays in the , along with a pseudo-element. Interaction outside the dialog is blocked and the content outside it is rendered inert.

Implementation

external void showModal();