iframe中刷新父页面方法及一些按钮刷新代码集合【原创+转】2009-07-23 11:12a页面里iframe了个b页面,我想实现在b页面里一个按钮,一按就刷新a页面,也就是父页面,不是只刷新iframe里面的b页面 哦~
请问b页面里的 <input type="button" class="btn" value=" 返 回 " onclick="history.back();">那个onclick 要怎么写呢?啊哈
答案是:parent.location.reload() ;
以下是网上的:
十一种刷新按钮的方法。很不错的,经常上网要找。哈哈。这下放这里了。
<input type=button value=刷新 onclick="history.go(0)">
<input type=button value=刷新 onclick="location.reload()">
<input type=button value=刷新 onclick="location=location">
<input type=button value=刷新 onclick="location.assign(location)">
<input type=button value=刷新 onclick="document.execCommand('Refresh')">
<input type=button value=刷新 onclick="window.navigate(location)">
<input type=button value=刷新 onclick="location.replace(location)">
<input type=button value=刷新 onclick="window.open('自身的文件','_self')">
<input type=button value=刷新 onClick=document.all.WebBrowser.ExecWB(22,1)>
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0> </OBJECT>
<form action="自身的文件">
<input type=submit value=刷新>
</form>
<a id=a1 href="自身的文件"> </a>
<input type=button value=刷新 onclick="a1.click()">
想改成自动的 做个计时器就可以了。不用我写了吧呵呵
分享到:
相关推荐
子窗口刷新父窗口 self.window.opener.locaction.reload(); 刷新一open()方法打开的窗口 window.opener.location.href = window.opener.location.href 刷新以winodw.showModelDialog()方法打开的窗口 window....
子页面刷新父页面
JS关于刷新父页面例子:javascript 弹出页面点击确定,刷新父页面 仔细分析学习
本Demo汇总是iframe父页面与iframe子页面如何相互调用方法、元素及值的几种常见方法(含JS、JQuery方法)
NULL 博文链接:https://skying007.iteye.com/blog/1044069
iframe和父窗口通讯实例~ 包括js和html代码~
对于多数后台管理项目都会使用iframe来加载页面,但是iframe刷新时链接会消失页面会执行首页的页面,本次代码就是解决iframe二级菜单刷新禁止返回首页的操作,简单易懂。
在同一个父页面中的两个iframe里面的两个子页面,进行无刷新的更新!
父页面 a.jsp 子页面 b.jsp,作为a页面中嵌入的iframe指向的页面 复制代码代码如下: <body> <iframe id=”frame” src=”b.jsp” …/> </body> 现在在b页面中做了一项操作,操作结束后,需要...
子窗口iframe提交后跳转到父窗口,总结四种方法。
NULL 博文链接:https://terryang.iteye.com/blog/292913
iframe内容页白块及刷新白色背景问题解决,在IE6,IE9上测试通过。
NULL 博文链接:https://747017186.iteye.com/blog/1985110
使用iframe实现图片上传以及上传后的本页面无刷新展示。运行环境是php和jq
easyUi弹出window窗口传值与调用父页面的方法,子页面给父页面赋值,详情链接:
子页面获取父页面的方法,变量,标签等子页面获取父页面的方法,变量,标签等
父页面得到iframe的数据和iframe页面得到父页面的数据.txt
一、在iframe中查找父页面元素的方法: $(‘#id', window.parent.document) 二、在iframe中调用父页面中定义的方法和变量: parent.method parent.value 三、实例 父页面: <%@ Page Language="C#" ...
使用iframe实现点击导航页面无刷切换,使用bootstrap布局
用iframe、弹出子页面刷新父页面iframe [removed] parent.location.reload();...子窗口刷新父窗口 [removed] self.opener.location.reload(); [removed] 刷新以open()方法打开的窗口 [removed] win