msg=showModalDialog('control/menuum.asp', '','dialogWidth:360px;dialogheight:120px;status:no;help:no');
      if ((msg)&&(msg.length!=0))
         alert(msg);

解决方案 »

  1.   

    请问楼上:
    1.htm有一个按钮十个文本框
    2.htm有一个按钮五个文本框在1.htm的按钮点击的时候:打开模式窗体并显示2.htm
    window.showModalDialog("2.htm",root.cloneNode(true),"dialogHeight:210px;dialogWidth:520px;status:no;help:no;scroll:no");在2.htm的按钮点击的时候:关闭模式窗体并把2.htm中第三个文本框的值赋给1.htm的第二个文本框
      

  2.   

    var return=window.showModalDialog("2.htm","","...")
    if (return!=null) {
        window.text1.value = retrun[0];
        ...
        window.text5.value = retrun[4];}
    在2.htm中
    window.returnValue = new Array(text1.value,...,text4.value);
    window.close();应该明白了吧?
      

  3.   

    你也可以在2.htm文件中用parent.forms[index].textName这样的语法参考1.htm文件的文本框对象!