ShowModalDialog (), ShowModelessDialog () method use details

xiaoxiao2021-03-17  230

ShowModalDialog (), ShowModelessDialog () Method Use the detailed JavaScript with many built-in methods to generate dialogments, such as: window.Art (), Window.Prompt (), WINDOW.PROMPT (). Wait. However, IE provides more Method Support dialog. Such as: ShowModalDialog () (IE 4 Support) ShowModelessDialog () (IE 5 Support) WINDOW.SHOWMODALDIALOG () method is used to create a modal dialog that displays HTML content, because it is not generally used All properties of Window.Open () open window. WINDOW.SHOWMODELESSDIALOG () method is used to create a non-modular dialog that displays HTML content. When we use ShowModelessDialog () to open the window, you don't have to use Window.close () to close it. When you open in a non-modular manner [IE5], the window to open the dialog can still be used, ie the dialog is not always It is the top focus, when it turns on its window URL, it automatically shuts down. The dialog box of the modal [IE4] is always focus (the focus cannot be removed until it is closed). The modal dialog box and the window that opens its window, so when we open another window, their link relationship is still saved and hidden below the active window. The method is as follows: vreturnValue = Window.showModalDialog (SURL [, Varguments] [, SFEATURES]) VRETURNVALUE = WINDOW.SHOWMODELESSDIALOG (SURL [, Varguments] [, SFEATURES] Parameter Description: SURL must-select 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 ";". The Dialogheight dialog height, not less than 100px, IE4 DialogHeight and DialogWidth default unit is EM, and IE5 is PX, which is convenient to see it, in the dialog of the Modal mode, use PX to do units. Dialogwidth: dialog width. Dialogleft: Distance from the left desktop. Dialogtop: Distance from the desktop. Center: {YES | NO | 1 | 0}: Whether the window is hit, default Yes, but still specify the height and width. Help: {yes | no | 1 | 0}: Whether to display the help button, default YES. Resizable: {YES | NO | 1 | 0} [IE5 ]: Whether it can be changed. Default NO.

Status: {yes | no | 1 | 0} [IE5 ]: Whether the status bar is displayed. The default is YES [Modeless] or no [modal]. Scroll: {YES | NO | 1 | 0 | ON | OFF}: Indicates whether the dialog box displays the scroll bar. Default is YES. There are also several properties to be used in HTA, which is generally not used in a general web page. DialoGHide: {yes | no | 1 | 0 | ON | OFF}: Whether the dialog box is hidden when printing or printing preview. The default is NO. Edge: {Sunken | Raised}: Indicates the border style of the dialog. Default is raised. Unadorned: {yes | no | 1 | 0 | ON | OFF}: The default is NO. Parameter: 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: test1.htm ==============================