Automation element event when a dialog is open

<dialog>

Experimental

This is an experimental technology
As this technology has not yet been definitively implemented, browser compatibility should be considered. It is also possible that the syntax will be changed in a later specification.

Summary

The HTML element represented a dialog or another interactive component, such as a window or sub-window. Elements can be integrated into a dialog by specifying them with the attribute. When such a form is submitted (submit), the dialog with the return value () of the attribute on the submit button used is closed.

The CSS pseudo-element can be used to change elements behind the element; For example, the background can be darkened.

Attributes

The global attributes can be used on this element. The attribute may not be used on the element.

The dialog is already open and active after loading the document. If the attribute is not set, the dialog is not displayed.

Examples

example 1

Example 2

Specifications

Browser compatibility

featureChromeFirefox (Gecko)Internet ExplorerOperasafari
Basic support37Not supported Bug 840640Unsupported24Unsupported
Anchor pointsUnsupportedUnsupportedUnsupportedUnsupportedUnsupported
featureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic supportAndroid browser 37UnsupportedUnsupportedUnsupportedUnsupported
Anchor pointsUnsupportedUnsupportedUnsupportedUnsupportedUnsupported

See also