Met Dialog Show
# Dialog show() Method
[ Dialog Object](#)
## 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 a dialog window.
When this method is used to display a 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 window is open, you can use the showModal() method.
**Tip:** This method is often used together with the [close()](#) method.
* * *
## Browser Support

**Note:** Currently, only Chrome Canary and Safari 6 support the show() method.
**Note:** Even though Chrome Canary supports the
YouTip