Dialog showModal() Method
Show a dialog window:
showModal() method shows a modal dialog.
showModal() method is often used together with the
showModal() is used to show a dialog window, the user is not able to
interact with other elements on the page.
if you want the user to be able to interact with other elements
on the page while a dialog is shown, use the
show() method instead.
showModal() has been supported in all browsers since HTML 4 (1997).
❮ Dialog Object