不好意思,代码弄错了一点。
父窗体:
<INPUT type="button" value="Button" onclick="window.showModalDialog('webform2.aspx',window.Form1.lbRecerviers);">

解决方案 »

  1.   

    window.Form1.lbRecerviers
    >>
    window.document.Form1.lbRecerviers
      

  2.   

    window.Form1.lbRecerviers
    >>
    window.document.getElementById("lbRecerviers")
      

  3.   

    我试过了,不行啊,可能showModalDialog只能传递整个窗口吧,单个的页面元素无法引用到
      

  4.   

    我传递整个窗体也是一样的问题。在子窗体中,使用alert(window.showModalDialog.options[0].value);也可以正常运行。
    但就是无法添加一个项,这是为什么啊
      

  5.   

    obj.options[5].text   =  "text";
    obj.options[5].value  = "value";
    不要用add,试试成不