HTML <dialog> open attribute

Definition and Usage

open The attribute is a boolean attribute.

If this attribute is set, it specifies that the dialog element is in an active state and the user can interact with it.

Example

Usage of <dialog> element:

<dialog open>This is an open dialog window</dialog>

Try It Yourself

Syntax

<dialog open>

Browser Support

The numbers in the table indicate the first browser version to fully support this attribute.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
37.0 79.0 98.0 15.4 24.0