Window.ShowModalDialog User Manual

xiaoxiao2021-03-06  102

Basic introduction: ShowModalDialog () (IE 4 Support) ShowModelessDialog () (IE 5 Support) WINDOW.SHOWMODALDIALOG () method is used to create a modal dialog that displays HTML content. WINDOW.SHOWMODELESSDIALOG () method is used to create a non-modular dialog that displays HTML content.

How to use: vreturnValue = WINDOW.SHOWMODALDIALOG (SURL [, Varguments] [, SFEATURES]) VRETURNVALUE = WINDOW.SHOWMODELESSDIALOG (SURL [, Varguments] [, SFEATURES])

Parameter Description: SURL - Required Parameters, Type: String. The URL of the document to specify the dialog to display. Varguments - Optional parameters, type: variant. Used to deliver parameters to the dialog. Parameters passing are not limited, including arrays, and more. The dialog box has obtained the passing parameters via Window.Dialogarguments. SFEATURES - Optional Parameters, Type: String. The information used to describe the appearance of the dialog box can use one or several of the following, separated by a semicolon ";". 1.Dialogheight: dialogHEIGHT: Dialog Height, not less than 100px, IE4 DialogHeight and DialogWidth default unit is EM, and IE5 is PX, which is convenient to see, when defining the MODAL mode dialog, use PX to do units. 2. DialogWidth: dialog box width. 3. Dialogleft: The distance from the left screen. 4. Dialogtop: The distance from the screen. 5.Center: {YES | NO | 1 | 0}: Whether the window is in, default Yes, but still specify the height and width. 6.help: {yes | no | 1 | 0}: Whether to display the Help button, default YES. 7.Resizable: {YES | NO | 1 | 0} [IE5 ]: Whether it can be changed. Default NO. 8.Status: {yes | no | 1 | 0} [IE5 ]: Whether the status bar is displayed. The default is YES [Modeless] or no [modal]. 9. Scroll: {yes | no | 1 | 0 | ON | OFF}: Indicates if the dialog box displays the scroll bar. Default is YES. The following attributes are used in HTA, which is generally not used in a general web page. 10.DialoGHide: {yes | no | 1 | 0 | ON | OFF}: Hide in the dialog box when printing or printing preview. The default is NO. 11.EDGE: {Sunken | Raised}: Indicates the border style of the dialog. Default is raised. 12.unadorned: {yes | No | 1 | 0 | ON | OFF}: The default is NO.

Parameter delivery: 1. To pass the parameters, it is passed through Varguments. Types are not limited, for string type, up to 4096 characters. You can also transfer objects, for example: ------------------------------- parent.htm