Easy Tutorial
❮ Prop Style Lineheight Jsref Prototype Date ❯

Dialog close() Method

Dialog Object

Example

Displaying and closing a dialog window:


Definition and Usage

The close() method is used to close a dialog window.

Tip: This method is commonly used in conjunction with the show() method.


Browser Support

Note: Currently, only Chrome Canary and Safari 6 support the close() method.

Note: Even if Chrome Canary supports the <dialog> element, you must enable the "Enable experimental Web Platform features" flag in the Chrome address bar by opening chrome://flags. After enabling, you need to restart the Chrome browser.


Syntax


Dialog Object

❮ Prop Style Lineheight Jsref Prototype Date ❯