Dialog Object
Show and close a dialog window:
The close() method closes the dialog.
Tip: This method is often used together with the show() method.
The close() method is currently only supported in Opera 24+, Chrome 37+ and Safari 6.