oOption 必须是在page2里面创建的 所以不能直接的使用
document.createElement
要使用
var oOption = opener.document.createElement("OPTION")
oOption.value = "xxx";
oOption.text = "xxx";
opener.page2form.Goods_Specs.options.add(oOption);

解决方案 »

  1.   

    1.确保2个页面之间没有跨域
    2.确保js中用到的那些object都存在结论:如果1、2都OK,请检查别的代码。
      

  2.   

    谢谢你们!
    var oOption = document.createElement("OPTION")
    改成这样
    var oOption = opener.document.createElement("OPTION")
    真的可以了!^-^
      

  3.   

    请问在opener.page2form.Goods_Specs.options.add(oOption)之前我想先把page2form.Goods_Specs原来的条目先清空.咋写啊
    opener.page2form.Goods_Specs.options.removeall();
    opener.page2form.Goods_Specs.options.clean();