你得用window.showModalDialog("2.htm")
给你个例子
test1.htm   
    ===================   
    <script>   
      var   a   =   window.showModalDialog("test2.htm")   
      for(i=0;i<a.length;i++)   alert(a[i])   
    </script>   
    
    test2.htm   
    ===================   
    <script>   
    function   sendTo()   
    {   
      var   a=new   Array("a","b")   
      window.returnValue   =   a   
      window.close()   
    }   
    </script>   
    <body>   
    <form>   
      <input   value="返回"   type=button   onclick="sendTo()">   
    </form>

解决方案 »

  1.   

    至于怎么得到某一行的值,你看这个贴子吧http://topic.csdn.net/u/20090329/20/4f34708b-673d-4f46-966d-25d2ad892550.html
      

  2.   

    在1.htm 加一个id属性
     <input type=text name=CustNO id= CustNO  size=6>
    在2.htm
    <table>
    <tr onclick="window.opener.document.getElementById('CustNO').value=this.cells[0].innerText"><td>a</td><td>b</td></tr>
    <tr onclick ="....."><td>c</td><td>d</td></tr>
    </table>
      

  3.   

    被打开窗口中window.opener代表第一个窗口对象