Title JavaScript Window Function Guide Create dialog HKTL (Repost) keyword JavaScript window function home http://www.ccidnet.com/tech/web/2001/19/58_1614.html
JavaScript Guide to create the dialog box window function (Author: hear the wind compiled in January 2001 on 19 Ri 11:35) JavaScript supports several built-in dialog: window.alert (), window.confirm () and window.prompt ( ). When a dialog is pop-up, the user cannot focus on the initial page unless the dialog operation ends. In other words, the dialog is always focused. Internet Explorer supports some ways to use them to apply them on any new window: ShowModalDialog () (Internet Explorer 4 and above) ShowModelessDialog () (Internet Explorer 5 and Above) The following is the syntax of these methods: vreturnValue = Window.ShowModaldialog (SURL [, Varguments]); vreturnValue = Window.showModelessDialog (SURL [, Varguments] [, SFEATURES]); the first parameter is a string, which specifies loading in a new window and The document URL is displayed. The second parameter, Varguments, is a Variant, which specifies the command to display the document. When using this parameter, you can pass any type of array or value. The dialog can pass the value to the caller from the Dialogarguments property of the Window object. When a new window is opened by one of the methods, the new window (dialog box) is closely written with the Dialogarguments property, which contains the value of the Varguments parameter assigned to the call method. Let's take a look at the following statement: Window.ShowModalDialog ("MODALURL.HTML", Window; note that the second command parameter is actually the Window object of the current browser window.
Below is the code: