This article is mainly on the use of JS ShowModalDialog parameters of the detailed analysis of the introduction, the need for friends can come to the reference, I hope to help you.
Basic introduction: ShowModalDialog () (IE 4+ support) showModelessDialog () &nbs P (IE 5+ support) window.showModalDialog () method to create a modal dialog box that displays HTML content. The Window.showmodelessdialog () method is used to create a modeless dialog box that displays HTML content. Usage: Vreturnvalue = window.showModalDialog (sURL [, varguments] [, sfeatures]) Vreturnvalue = Window.showmod Elessdialog (sURL [, varguments] [, sfeatures]) parameter description: surl --Required parameters, type: string. The URL used to specify the document to display in the dialog box. varguments --optional parameter, type: Variant. Used to pass parameters to the dialog box. The parameter types passed are not limited, including arrays, and so on. The dialog box is window.dialogarguments to get the parameters passed in. sfeatures --optional parameter, type: String. Used to describe information such as the appearance of a dialog box, you can use one or more of the following, with a semicolon ";" Separated. ----------------1. Dialogheight: dialog box height, not less than 100px 2. Dialogwidth: dialog box width. 3. Dialogleft: distance from the left of the screen. 4. Dialogtop: distance from the screen. 5. Center: {Yes | no | 1 | 0}: Center, yes, but you can still specify height and width. 6. Help: {yes | no | 1 | 0}: Whether to display the Help button, default yes. 7. Resizable: {yes | no | 1 | 0} [ie5+]: can be changed size. Default No. 8. Status:{yes | no | 1 | 0} [ie5+]: Show status bar. Default is yes[Modeless] or no[modal]. 9. scroll:{Yes | no | 1 | 0 | on | off}: Scroll bar is displayed. The default is yes. The following attributes are used in HTA and are generally not used in general Web pages. 10.dialoghide:{Yes | no | 1 | 0 | on | off}: Dialog box is hidden when printing or printing preview. The default is No. edge:{Sunken | raised}: Indicates the border style of the dialog box. Default is raised. unadorned:{Yes | no | 1 | 0 | on | off}: default is No. Parameter pass: 1. To pass arguments to a dialog box, pass it through varguments. Type is not restricted, for a string type, the maximum is 4,096 characters. You can also pass objects, such as: parent.htm Code as follows: <script> var obj = new Object (); Obj.name= "51js"; window.showModalDialog ("modal.htm", obj, "dialogwidth=200px;dialogheight=100px"); </script> modal.htm <script> var obj = window.dialogarguments alert ("The parameter you passed is:" + obj.name) </script> 2. You can return information to the window that opens the dialog box by Window.returnvalue, or you can also be an object. For example: parent.htm code as follows: <script> &NBSP;STR =winDow.showmodaldialog ("modal.htm", "dialogwidth=200px;dialogheight=100px"); alert (str); </script> modal.htm <script> window.returnvalue= "http://www.jb51.net"; </script>