Dialog show() method
Example
Show or close the dialog window:
var x = document.getElementById("myDialog");
function showDialog()
{
x.show();
}
function closeDialog()
{
x.close();
}
Try it »
Definition and Usage
The show() method is used to display the dialog window.
When this method is used to display the dialog window, the user can still interact with other elements on the page. If you do not want the user to interact with the page while the dialog is shown, you can use the showModal() method.
**Tip:** This method is usually used together with close() the method.
Browser support





Note: Currently only Chrome Canary and Safari 6 browsers support the show() method.
Note: Even if Chrome Canary supports
Syntax
dialogObject
.show()
Dialog Object