Window. showModalDialog syntax, showmodaldialog
The window. showModalDialog () method is used to create a modal dialog box that displays HTML content.
1. supported versions:
ShowModalDialog () (IE 4 + supported)
2. Syntax:
VReturnValue = window. showModalDialog (sURL [, vArguments] [, sFeatures]);
3. Parameter explanation:
A required sURL string is used to specify the URL of the webpage to be displayed in the dialog box.
An optional variant of vArguments is used to pass parameters to the dialog box. The parameter type is not limited.
The dialog box uses window. dialogArguments to obtain the passed parameters.
An optional sFeatures string is used to describe the appearance and other information of the dialog box.
4. sFeatures parameter description
DialogHeight npx dialog box height, not smaller than 100px
DialogWidth npx dialog box width
Distance from the left of the main window to dialogLeft npx
Distance of dialogTop npx from the main window
Center {yes | no | 1 | 0} whether the window is centered. The default value is yes.
Help {yes | no | 1 | 0} whether to display the help button. The default value is yes.
Resizable {yes | no | 1 | 0} whether the size can be changed. The default value is no.
Status {yes | no | 1 | 0} indicates whether the status bar is displayed. The default value is yes [Modeless] or no [Modal].
Scroll {yes | no | 1 | 0 | on | off} indicates whether the scroll bar is displayed in the dialog box. The default value is yes.
Note: The dialogHide, edge, and unadorned attributes are used in HTA (HTML Aplication) and are generally unavailable on webpages.