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: variants. 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: dialog Height, not less than 100px, IE4 Dialogheight and Dialogwidth default unit is EM, and IE5 is PX, for convenience, When defining the MODAL mode dialog, do units with PX. 2. DialogWidth: dialog width. 3. Dialogleft: The distance from the left on the screen. 4. Dialogtop: Distance from the screen. 5. Center: {yes | No | 1 | 0}: Whether the mouth is hit, 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}: The dialog box is hidden 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