var ret = window.showModalDialog("SMD_target.htm","Dialog Arguments Value","dialogHeight: 403px; dialogWidth: 449px; dialogTop: 475px; dialogLeft: 428px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;");

解决方案 »

  1.   

    use msdn to see the detail
      

  2.   

    ...
    function showdlg(var1,var2,var3)
    {
    var dialogArgs=new Array();
    var the_url="dialog.htm";
    var the_winstate="dialogWidth:290px;dialogHeight:300px;status:'no'";

    dialogArgs[0]=var1;
    dialogArgs[1]=var2;
    dialogArgs[2]=var3;
    var result=showModalDialog(the_url,dialogArgs,the_winstate);
    alert(result);
    }dialog.htm:
    ....
    var returnValuealert(window.dialogArguments[0]);
    alert(window.dialogArguments[1]);
    alert(window.dialogArguments[2]);
    returnValue="returned";
    window.close();