在top.html页中写JS脚本控制bottom.html中的元素显示提示信息应该没问题。
parent.frames["bottom"]
parent.frames["bottom"]
解决方案 »
- 自己写的dll 在注册表里注册,使其达到类似于微软认证的效果
- google maps api诡异事件
- 请教各位这个搜索功能如何实现的
- 怎么利用jsp中的request对象将checkbox的value值导出?
- 散分, 关于人品问题...
- ie10无法获通过iframe.contents().find("body").height()获取隐藏iframe的高度,大神怎么处理?膜拜了
- 请问,如何同时填写多个文本输入框?
- Array.sort()不能对汉字进行排序?
- 页面中有一个iframe,如何知道该iframe相对屏幕左上角的坐标位置?
- 帮助:找寻好网站。
- ms ie bug?
- 如果拖动 改变 tables 中 td 的宽度!!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="top.htm" name="top" scrolling="NO" noresize >
<frame src="bottom.htm" name="bottom">
</frameset>
<noframes><body>
</body></noframes>
</html>
top.htm 页
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script>
function myFun()
{
var bottomF = parent.frames["bottom"];
//alert(bottomF);
bottomF.document.getElementById("div").innerText = "我的提示信息"
}
</script>
</head><body>
<input type="button" value="在bottom显示内容" onClick="myFun()">
</body>
</html>
bottom.htm页
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<div id= "div"></div>
</body>
</html>
我做了一个简单的例子,希望对你有帮助
也许这个可以给你启发