主页面
<html>
<head>
    <title>管理中心</title>
    <meta http-equiv="Content-Type" content="text/html;charset=gb2312">
</head>
<frameset rows="64,*" frameborder="NO" border="0" framespacing="0">
 <frame src="admin_top.html" noresize="noresize" frameborder="NO" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="main" />
  <frameset cols="200,*"  rows="560,*" id="frame">
 <frame src="left.aspx" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" target="main" />
 <frame src="right.html" name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" target="_self" />
  </frameset>
<noframes>
  <body></body>
    </noframes>
</html>子页面 a.html
如何把子页面里的数据传给主页面的right.html 框架里的一个文本框 

解决方案 »

  1.   

    a.html是哪个页面?
    窗口直接的关系用parent来查找定位
      

  2.   

    子页面上的方法  function send_value_to_parent(){
      
         parent.receive_value_from_children(param);
       
      }父页面上的方法  function receive_value_from_children(param){
          document.getElementById('文本框ID').value=param;
      }还可以通过这句话来实现
          document.getElementById('文本框ID').value=main.document.getElementById("子页面存放值的dom对象的Id").value;
         
      

  3.   

    更正下
    parent.receive_value_from_children(param);
    改成
    parent.receive_value_from_children(document.getElementById('子页面存放值的dom对象的Id‘).value);