可以
send_document.asp中加
<input type=hidden name=xxx>son.asp中加
window.opener.form1.xxx.value=tbCell.innerHTML

解决方案 »

  1.   

    son.asp里面的js是这样写的,我不懂js,不知道加在哪里
    <SCRIPT language=javascript>
    function fnReturnItem()
    {
    var arrChk = document.getElementsByName("chkPerson");
    if (typeof (arrChk) == 'object')
    {
    var src_table = document.getElementById("tbl_persons");
    var dest_table = window.opener.tbl_grid;

    for (var i=0; i<arrChk.length; i++)
    {
    if (arrChk[i].checked)
    {
     //
    if(dest_table.rows(3) == null)
    {
    var tbRow = dest_table.insertRow();
    }
    else
    {
    var tbRow = dest_table.rows(3);
    }                 var src_row = src_table.rows(i+1);
                     //var tbCell = tbRow.insertCell();
     if(tbRow.children(1) == null)
     {
    var tbCell = tbRow.insertCell();
     }else{
    var tbCell = tbRow.children(1);
     }

    var send = tbCell.innerHTML.substring(tbCell.innerHTML.length-1,tbCell.innerHTML.length);

    if(send == ">")
     {
    tbCell.innerHTML = tbCell.innerHTML + src_row.children(1).innerText;
     }else
     {
    tbCell.innerHTML = tbCell.innerHTML + "," +src_row.children(1).innerText;
     }
                      }
    }
    }
    window.close();
    }
    </SCRIPT>