总共包含三个页面(Html),分别为Parent.Html、ChildA.Html、ChildB.Html

Parent.Html页面代码

<frameset cols="50%,*">
<frame name="left" src="1.html">
<frame name="right" src="2.html">
</frameset>

ChildA.Html页面代码

<html>
<head>
<script>
function setValue() {
window.parent.document.getElementById("right").contentWindow.document.getElementById("txt2").value = document.getElementById("txt1").value;
}
</script>
</head>
<body>
<input type="text" id="txt1" onkeyup="setValue()" />
</body>
</html>

ChildB.Html页面代码

<html>
<head>
<script>
function setValue() {
window.parent.document.getElementById("left").contentWindow.document.getElementById("txt1").value = document.getElementById("txt2").value;
}
</script>
</head>
<body>
<input type="text" id="txt2" onkeyup="setValue()" />
</body>
</html>

最新文章

  1. Python 批量修改文件名
  2. switch
  3. codeforces 519E A and B and Lecture Rooms LCA倍增
  4. android 进程/线程管理(四)续----消息机制的思考(自定义消息机制)
  5. Spark服务启动的一些总结
  6. php--jquery操作全选、批量删除、加减行
  7. JSON 之 SuperObject(10): Merge、Clone、ForcePath
  8. Umbraco部署到IIS中权限问题(back office没有权限新建template)
  9. objcopy
  10. 各种电子面单_Api接口
  11. USACO5.4-TeleCowmunication
  12. 笔试、面试重点总结:WIN32、MFC与Linux
  13. Windows 10下Markdown不能显示预览
  14. web安全之机器学习入门——2.机器学习概述
  15. 牛客OI周赛7-提高组 B小睿睿的询问(ST打表)
  16. Java虚拟机 内存区域划分
  17. angular中的ng-options 用法
  18. es手动创建索引,修改索引,删除索引
  19. android view surfaceView GLSurfaceView
  20. 蜗牛慢慢爬 LeetCode 2. Add Two Numbers [Difficulty: Medium]

热门文章

  1. SQL server 2008里面通过sys.dm_exec_procedure_stats得到存储过程的执行信息--转
  2. 【划分树+二分】HDU 4417 Super Mario
  3. Centos6 安装 Redis 和集群配置
  4. CentOS6.5卸载默认安装的mysql5.1,并安装mysql5.5(亲测有效)
  5. 【C语言】二维数组中的查找,杨氏矩阵
  6. 51单片机晶振11.0592M延时函数
  7. some issues that you should be take care of when use the plupload module
  8. 稳固而窒息 jquery attr 和 Prop的区别
  9. plink参数说明
  10. iPhone How-to:如何调整UIView的Z-Order