javascirpt实现2个frame传值
来源:互联网 发布:win10禁用windows更新 编辑:程序博客网 时间:2024/06/01 11:33
index.htm
<body>
<table border="1" width="100%">
<tr>
<td width="100%"><iframe src="iframe1.htm" name="aa"></iframe></td>
</tr>
<tr>
<td width="100%"><iframe src="iframe2.htm" name="bb"></iframe></td>
</tr>
</table>
</body>
iframe1.htm
<html>
<title>1</title>
<head>
<script>
function aa(){
parent.frames["bb"].document.all["TextBox3"].value = document.getElementById("TextBox1").value;
parent.frames["bb"].document.all["TextBox4"].value = document.getElementById("TextBox2").value;
alert(parent.frames["bb"].document.all["TextBox3"].value);
alert(parent.frames["bb"].document.all["TextBox4"].value);
}
</script>
</head>
<body>
<form id="a">
<input id="TextBox1" type="text" id="TextBox1" value="1"/>
<input id="TextBox2" type="text" id="TextBox2" value="2"/>
<input id="T" type="button" value="3333333" onclick="aa();"/>
</form>
</body>
</html>
iframe2.htm
<html>
<title>2</title>
<head></head>
<body>
<form id="b">
<input id="TextBox3" type="text" id="TextBox1" value="1231111"/>
<input id="TextBox4" type="text" id="TextBox2" value="123"/>
</form>
</body>
</html>
- javascirpt实现2个frame传值
- javascirpt实现2个iframe之间传值的方法
- javascirpt用享元模式实现日历
- 实现拖放功能的javascirpt代码
- 用javascirpt实现回置滚动条的位置
- javascirpt解析xml并实现省市二级联动
- 用JavaScirpt实现斐波纳契数列最简洁方式
- 使用frame框架,实现一个网页显示多个界面使用js语言,实现事件响应
- frame简单实现导航
- frame实现整体刷新
- frame动画的实现
- frame动画的实现
- frame实现菜单导航
- frame实现部分刷新
- wxWindows 第一个Frame程序
- javascirpt验证
- JavaScirpt框架
- Javascirpt - 事件
- [eCGUI嵌入式GUI]Unicode德文显示支持!
- VS2005快捷键大全
- 厚脸皮的缘分
- 开始→运行→输入的命令集锦
- 两个有趣的搜索引擎:Trueknowledge 和 Everyzing
- javascirpt实现2个frame传值
- C# 将数据导出到Execl汇总
- Sql Server 2005 服务器性能监视
- setTimeout中调用函数有参数该怎么传递
- Cisco路由入侵艺术
- 悲喜交加的周末
- SAP登录窗口设置默认client(for IDES4.71)
- C/C++ 关键字(详解)
- 使用ELF Statifier 在不同的linux系统间使用可执行文件