Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
Warning: This feature has been removed. Please fix your Web sites and applications.
This method was removed in Chrome 43 and Firefox 56.
The Window.showModalDialog()
created and displayed a modal dialog box containing a specified HTML document.
returnVal = window.showModalDialog(uri[, arguments][, options]);
-
returnVal
holds the returnValue
property as set by the document specified by uri
.
-
uri
is the URL of the document to display in the dialog.
-
arguments
is an optional variant containing values passed to the dialog; these are made available in the window
object's window.dialogArguments
property.
-
options
is an optional string specifying window ornamentation for the dialog, using one or more semicolon delimited values:
Note: Firefox does not implement the dialogHide
, edge
, status
, or unadorned
arguments.
showModalDialog()
was briefly standardized as part of HTML5. The third argument for additional options was not present in the HTML5 version.