window.opener.document.all.ceshi.value=document.all.temp.value

解决方案 »

  1.   

    <input type="radio" name="temp" value="测试1" id="temp">
          <input type="radio" name="temp" value="测试2" id="temp">
          <input type="radio" name="temp" value="测试3" id="temp">
    window.opener.document.all.ceshi.value=document.all.temp[0].value
      

  2.   

    不行啊,无论我选择的是哪个都显示的只是"测试1",然后我把temp[0]改成temp[1],显示的却是测试2,怎么回事啊?
      

  3.   

    temp是一个数组,包含名/ID为temp的控件,以0开始索引,0即第一个,依次……
      

  4.   

    <script>
    function deng(){
    var woyingjie=""
    for(i=0;i<document.all.temp.length;i++){
    if(document.all.temp[i].checked){  
                             window.opener.document.all.ceshi.value=document.all.temp[i].value
    }
    }
    }
    </script>
      

  5.   

    <script>
    function deng(){
    for(i=0;i<document.all.temp.length;i++){
    if(document.all.temp[i].checked){  
                             window.opener.document.all.ceshi.value=document.all.temp[i].value
    }
    }
    }
    </script>
      

  6.   

    问题解决, woyingjie(killerj.style.display == "none";)(隐身中..........) 接分!