在按钮上有window.open打开一个页面,可以把当前页面的值传到打开的页面吗?
如题
------解决方案--------------------主页面: 
  <script>  
 function searchUser() 
 { 
        window.open( ' <%=SysInitParam.CONTEXT_PATH%> /DjbbzlListAction.do?type=user ', ' ', 'toolbar=no,location=no,top=20, left=50, width=830, height=400,scrollbars=yes '); 
 } 
  </script>  
  <table width= "100% " border= "0 " cellpadding= "0 " cellspacing= "5 ">  
  <tr>  <td>  <input name= "bb " type= "button " class= "buttonface " onClick= "searchUser() " value= "纳税人 ">  
          <input name= "name " type= "text " size= "15 " />   
          <input name= "address " type= "text " class= "text " size= "23 "  value= " " readonly= " "/>  
  </td>  </tr>  
  </table>  
 调用页面: 
  <script>  
 function set(name,address) 
 { 
         window.opener.document.all[ "name "].value=name; 
         window.opener.document.all[ "address "].value=address;         
         window.close(); 
 } 
  </script>