var oOption = parent.selectedFrame.document.createElement("OPTION");
......
parent.selectedFrame.document.all.rightselected.add(oOption);

解决方案 »

  1.   

    谢谢 ice_berg16(寻梦的稻草人),真如你所说,问题已经解决,可是现在我还有个相对的问题,如果要从列表中删除一个选项,该如何做?
      

  2.   

    form1.rightselect.options[0]=null
    form1.rightselect.options[1]=null
    form1.rightselect.options['opName']=null
    ==================================
    delete form1.rightselect.options[0]
    delete form1.rightselect.options[1]
    delete form1.rightselect.options['opName']
      

  3.   

    parent.selectedFrame.document.all.rightselected.options[0]=null
    parent.selectedFrame.document.all.rightselected.options[1]=null
    parent.selectedFrame.document.all.rightselected.options['opName']=null
    ==================================
    parent.selectedFrame.document.all.rightselected.options[0]
    parent.selectedFrame.document.all.rightselected.options[1]
    parent.selectedFrame.document.all.rightselected.options['opName']
      

  4.   

    楼上的兄弟说的可以清空option的一个表项的值,但是看起来是个空的表项,我想把该表项去掉,不仅仅是清空,可以吗?
      

  5.   

    parent.selectedFrame.document.all.rightselected.outerHTML = "";