Dialog close() Method
Show and close a dialog window:
Try it yourself »
Definition and Usage
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 Chrome Canary, and Safari 6.
Note: Even though the <dialog> element is supported in Chrome Canary, you must enable a flag to use it. Write chrome://flags in your address bar and enable the "Enable experimental Web Platform features" flag. Once this is enabled, you must restart the browser for the change to take effect.
Thank You For Helping Us!
Your message has been sent to W3Schools.