社区
JavaScript
帖子详情
在iframe的父窗口中怎样知道iframe页面刷新了。
wyerm
2003-11-22 02:56:04
<iframe name='myif' src="http://www.sina.com.cn"></iframe>
myif里面有很多链接,当点了一个链接后 myif里面的内容更新了。我怎样才能在myif的父窗口中知道myif 的内容已经变了。
...全文
39
4
打赏
收藏
在iframe的父窗口中怎样知道iframe页面刷新了。
myif里面有很多链接,当点了一个链接后 myif里面的内容更新了。我怎样才能在myif的父窗口中知道myif 的内容已经变了。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
ghlfllz
2003-11-22
打赏
举报
回复
赞同 tylike(天外来客)的意见,在<BODY>里加
yonghengdizhen
2003-11-22
打赏
举报
回复
跨域是无法得知状态的..
ie6针对iframe有个onreadystate事件可以监控,但ie5就不行了
紫郢剑侠
2003-11-22
打赏
举报
回复
关注..
tylike
2003-11-22
打赏
举报
回复
你可以在子页面中加一句
onload="parent.document.all.hdds+=1;或是直接调用函数";
你如你没有改子页的权力,你只好看看子页面是否下载完成了
myif.status?
jsp
刷新
父
页面
用
iframe
、弹出子
页面
刷新
父
页面
iframe
parent.location.reload(); 弹出子
页面
window.opener.location.reload(); 子
窗口
刷新
父
窗口
self.window.opener.locaction.reload();
刷新
一open()方法打开的
窗口
window.opener.location.href = window.opener.location.href
刷新
以winodw.showModelDialog()方法打开的
窗口
window.parent.dialogArguments.document.execCommand('Refresh'); 或 Response.Write("<script>window.location.href = window.location.href刷新本页Response.Write("<script>window.location.href=window.location.href; 刷新
父
页和本
页面
: Response.Write("<script>alert('提交成功!');window.location.href=window.location.href;window.opener.location=window.opener.location;
Iframe
页面
请求跳转问题解决
首先在
父
页面
的javascript给定义一个window.name,并赋予一个字符串值,如window.name="test",其
中
赋予的字符串值可以随意定义,然后在
Iframe
页面
的Form 标签
中
定义target属性,并且其值也必须与之前定义的window.name的值相同,即<form method="post" target="test" >,在子
页面
提交后即可
刷新
父
页面
跳转到指定的请求
页面
. 此资源由网友提供。谢谢!
基于bootstrap用
iframe
实现的局部
刷新
的案例
基于bootstrap用JS实现的局部
刷新
的案例,基于
iframe
实现tab页切换的效果
javascript
刷新
父
页面
的各种方法汇总
用
iframe
、弹出子
页面
刷新
父
页面
iframe
[removed] parent.location.reload(); [removed] 弹出子
页面
[removed] window.opener.location.reload(); [removed] 子
窗口
刷新
父
窗口
[removed] self.opener.location.reload(); [removed]
刷新
以open()方法打开的
窗口
[removed] win
javascript
刷新
父
页面
方法汇总详解
1.用
iframe
、弹出子
页面
刷新
父
页面
iframe
[removed] parent.location.reload(); [removed] 2.弹出子
页面
[removed] window.opener.location.reload(); [removed] 3.子
窗口
刷新
父
窗口
[removed] self.opener.location.reload(); [removed] 4.
刷新
以open()方法打开的
窗口
<script language=J
JavaScript
87,907
社区成员
224,614
社区内容
发帖
与我相关
我的任务
JavaScript
Web 开发 JavaScript
复制链接
扫一扫
分享
社区描述
Web 开发 JavaScript
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章