主页面
<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 框架里的一个文本框
<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 框架里的一个文本框
解决方案 »
- Javascript在不同浏览器及动、静态网页里显示的问题
- 我做了个网站,有首页flash的,首页是index.html,我的flash上,有一个按钮 进入网站,指向 www.xxx.com/index.php
- response.write 弹出框 返回到iframe的方法
- 日期加一的问题
- 怎么在屏幕中间载入个文字动画。并等文字动画播放完毕执行后面程序再删除此动画
- 请问在JS中调用正则的格式?
- 浮动菜单上点击,弹出一个页面.如果这个页面已经存在,它不会自动浮动到屏幕的最前端
- 单选框的选择问题
- 如何将数字序列自动填零
- 如何使form无法提交?
- <jsp:param name="logging" value="on">
- ajax 中多次传值 无法返回
窗口直接的关系用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;
parent.receive_value_from_children(param);
改成
parent.receive_value_from_children(document.getElementById('子页面存放值的dom对象的Id‘).value);