vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])vArguments :
Optional. Variant that specifies the arguments to use when displaying the document. Use this parameter to pass a value of any type, including an array of values. The dialog box can extract the values passed by the caller from the dialogArguments 
property of the window object. 把打开ModalDialog的对象直接传到ModalDialog里就好了

解决方案 »

  1.   

    你打开模态对话框时再另传一个参数,就用这个文本框的索引值,因为同名的INPUT会形成一个集合,就像是一个数组,再次给INPUT赋值的时候,就以索引值直接的访问该INPUT...比如
    <form name="form1" id="form1">
    <input name="abc" id="abc" value="aaaa">
    <input name="abc" id="abc" value="aaaa">
    </form>document.form1.abc[0].value
    document.form1.abc[1].value就看你怎么组织了,像这种事其实还是很好办的.
      

  2.   

    一楼的办法不行 因为我返回的值是一个数组二楼的 我用了 但是他老说docm.form.type[..]之类的为空或不是对象
      

  3.   

    我想二楼的方法是不是你有个地方漏掉了,就是极限的情况,比如只有一个"<input name="abc" id="abc" value="aaaa">"那就不会形成数组,当然用"document.form1.abc[*].value"的方法根本没有办法来识别,所以最好做个判断用"document.form1.abc.length"如果这个只是undefine(不能写成=="undefine",要写成==undefine)如果成立就"document.form1.abc.value",不成立就用二楼的方法。我想就可以了!