我在A页面用window.open 打开一个页面,怎样将打开页面的填入值传入A页面?

解决方案 »

  1.   

    ·双线主机 100M/35元/年,免费送数据库(自选MY/MSSQL)
    ·支持ASP+ASP.NET+PHP+HTML
    ·详情请访问:http://www.515dns.com
    ·QQ:287895593
      

  2.   

    假如A里面有个文本框Id是txtData,在新页面里面
    window.opener.document.getElementByid("txtData").value="hello";
    就可以把hello写入A的文本框中
      

  3.   

    可以用session 传 , open开的页面把值存入session A
    页面可以读出来的
      

  4.   

    window.opener.document.getElementByid("txtData").value="hello"; 
      

  5.   

    参考:
    http://blog.csdn.net/insus/archive/2008/03/26/2221227.aspx
      

  6.   

    Response.Write("<script>if(window.opener!=undefined && window.opener!=null ){var a=window.opener.document.getElementById('ctl00_ContentPlaceHolder1_ddl_type').value;window.opener.document.getElementById('ctl00_ContentPlaceHolder1_tb_class').value='"+ckText+"';window.close();}</script>");
      

  7.   

     Response.Write("<script language='javascript'>window.opener.GetV('');</script>");
            Response.Write("<script language='javascript'>window.close();</script>");
    A.aspx
    funvtion GetV(s)
    {
    var p=document.getElementById('<%=Textbox1.ClientId%>')';
    p.value=s;
    }