利用window.ShowModalDialog();本版已经有了类似的讨论

解决方案 »

  1.   

    This example uses the showModelessDialog method to create a return value. It also shows how to handle user actions in the modeless dialog box.<HEAD>
    <SCRIPT>
    // Supplies a return value from modeless dialog box.
    var sUserName="";              // Passes URL and file name of dialog box as a variable.
    var oDialog = "myDialog.htm";  // Passing the window object allows for the creation of a 
    // callback to return information from the modeless dialog box.function fnCallDialog()                                             
    {
       showModelessDialog(oDialog,window,
          "status:false;dialogWidth:300px;dialogHeight:300px");
    }</SCRIPT>
    </HEAD>