Dialog show() method
Show or close the conversation window:
function showDialog()
{
x.show();
}
function closeDialog()
{
x.close();
}
Try it out . . .
Definitions and usages
The show() method is used to display a conversation window.
When this method is used to display a conversation window, the user can still interact with other elements of the page. If you don't want users to interact with the page when the conversation window pops up, you can use the showModal() method.
Tip: This method is typically used with the close() method.
Browser support
Note: Currently only Chrome Canary, Safari 6 supports the show() method.
Note: Even if Chrome Canary supports the element, you must open the chrome://flags in the Chrome address bar and turn on the "Enable The World Web Platform" tag. After you turn it on, you'll need to restart Chrome.