The window.showModalDialog () method is used to create a modal dialog box that displays HTML content.
1, Version support:
ShowModalDialog () (IE 4+ support)
2. Syntax:
Vreturnvalue=window.showmodaldialog (Surl[,varguments][,sfeatures]);
3. Parameter explanation:
sURL the required string is used to specify the URL of the page to display for the dialog box.
Varguments optional variants are used to pass parameters to the dialog box. Parameter types are not limited.
The dialog box uses window.dialogarguments to get the arguments passed in.
Sfeatures Optional string to describe the appearance of dialog boxes and other information
4. Sfeatures parameter Description
Dialogheight npx dialog box height, not less than 100px
Dialogwidth npx Dialog box width
Dialogleft npx from the left of the main window
Dialogtop NPX distance from the main window
Center {yes | no | 1 | 0} window is centered, default Yes
Help {yes | no | 1 | 0} whether to display the Assist button, default Yes
Resizable {yes | no | 1 | 0} whether the size can be changed, the default no
Status {yes | no | 1 | 0} whether the status bar is displayed, default is yes[Modeless] or No[modal]
Scroll {yes | no | 1 | 0 | on | off} Indicates whether the dialog box displays a scroll bar, the default is Yes
Note: dialoghide,edge,unadorned these three attributes are used in HTA (HTML aplication) and are not available on general Web pages.
window.showModalDialog syntax