Dialog close() method
Example
Show and close the dialog window:
var x = document.getElementById("myDialog");
function showDialog()
{
x.show();
}
function closeDialog()
{
x.close();
}
Try it »
Definition and Usage
The close() method is used to close the dialog window.
Tip: This method is usually used together with show() the method.
Browser support





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