<strong></strong><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>父窗口与子窗口</title>
<style type="text/css">
#windowIframe{border:2px solid #F00; height:230px; width:100%;}
#windowOpen{ border:2px solid #666; min-height:200px;_height:200px; width:100%; margin:20 0px;}
#showModalDialog{ border:2px solid #C6C; height:200px;}
.ParentDiv{ text-align:center; background-color:#F09; color:#FFF; font-size:14px;}
.FloatLeft{ float:left;}
.FloatRight{ float:right;}
.ClearFloat{ clear:both; font-size:0px; height:0px; overflow:hidden;}
.width_45{ width:45%;}
</style>
<script type="text/javascript">
window.name="myWin";
</script>
</head>
<body>
<div id="windowIframe">
<div class="ParentDiv" id="ParentDiv">Iframe</div>
<div class="width_45 FloatLeft ">
<br />
<div id="IframeDiv">我是父窗口中的div</div>
啊啊啊啊啊
<br />
</div>
<div class="width_45 FloatLeft">
<iframe id="Iframe1" width="300px" height="200px" src="Iframe.html"></iframe>
</div>
</div>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
首先在父页面的javascript给定义一个window.name,并赋予一个字符串值,如window.name="test",其中赋予的字符串值可以随意定义,然后在Iframe页面的Form 标签中定义target属性,并且其值也必须与之前定义的window.name的值相同,即<form method="post" target="test" >,在子页面提交后即可刷新父页面跳转到指定的请求页面. 此资源由网友提供。谢谢!
资源推荐
资源详情
资源评论
收起资源包目录
父窗口与子窗口.zip (2个子文件)
父窗口与子窗口
index.html 1KB
Iframe.html 655B
共 2 条
- 1
资源评论
- 独孤舞狼2013-09-24对我的帮助不是很大!
- pku_wanabe2012-12-13不能从根本上解决问题啊
- 季末荳芓2013-03-16不能从根本上解决问题啊
- blank-h2013-12-20没有解决我的问题
蚂蚁与咖啡的故事
- 粉丝: 10
- 资源: 43
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功