/

HTML / CSS / JavaScript Tutorial

HTML Element: <dialog>

[this page | pdf | back links]

The HTML <dialog> element indicates a dialog box or window. It simplifies the creation of popup dialogs, but is not currently supported by all major browsers.

 

The attributes it can take (other than HTML global attributes and HTML event attributes) include:

 

Attribute

Description

More

open

Whether details should be visible (i.e. open) to user

Here

 

To create or access such an element in JavaScript see here. The corresponding HTML DOM object supports standard DOM properties and methods. The default style applicable to this element is shown here.

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Elements


Desktop view | Switch to Mobile