iframe中刷新父页面方法及一些按钮刷新代码集合【原创+转】2009-07-23 11:12a页面里iframe了个b页面,我想实现在b页面里一个按钮,一按就刷新a页面,也就是父页面,不是只刷新iframe里面的b页面 哦~
请问b页面里的<input type="button" class="btn" value=" 返 回 " οnclick="history.back();">那个onclick 要怎么写呢?啊哈
答案是:parent.location.reload() ;
以下是网上的:
十一种刷新按钮的方法。很不错的,经常上网要找。哈哈。这下放这里了。
<input type=button value=刷新 οnclick="history.go(0)">
<input type=button value=刷新 οnclick="location.reload()">
<input type=button value=刷新 οnclick="location=location">
<input type=button value=刷新 οnclick="location.assign(location)">
<input type=button value=刷新 οnclick="document.execCommand('Refresh')">
<input type=button value=刷新 οnclick="window.navigate(location)">
<input type=button value=刷新 οnclick="location.replace(location)">
<input type=button value=刷新 οnclick="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=刷新 οnclick="a1.click()">
详细解决方案
iframe嵌入的子页面如何刷新父窗口
热度:4 发布时间:2024-03-06 19:32:09.0
相关解决方案
- iframe 子页刷新父页有关问题 大神请帮忙看看
- jsp页面放在html《iframe》中中文没法正常显示 单独是可以显示正常的O(∩_∩)O~该怎么解决
- 请问一个页面有关问题-iframe
- iframe 鼠标打击有关问题
- AJAX 的TabContainer控件 嵌套 iframe 标签页 标签页面过长时自动顺应
- iframe 中使用UEditor有关问题
- Iframe top.history.go(@Num)有关问题
- iframe Session丢失 跳转到登陆页面有关问题
- iframe 局部刷新 带图片的刷新按钮 如何弄
- 大家都把导航条,页头页脚做到哪里,独立页面用<iframe>调用,还是母板页,望前辈指点,该怎么解决
- 【聊天室】大师们,该怎么点击“提交”按钮把信息显示在 <iframe>里面 呢
- 关于 iframe url的有关问题
- iframe 页面与页面传值有关问题
- iframe 相关有关问题
- Iframe 如何从父窗体再次调用页页。
- iFrame 打开有关问题~
- 为什么点一下浏览器右上角的最大化最小化,IFRAME 就变形,该如何解决
- 关于<iframe></iframe> 于masterpage~该如何处理
- iframe 高度有关问题~
- 新闻系统中都使用 JS 调用内容,为什么不使用IFRAME ,IFRAME 能被搜索引擎收录啊解决方案
- 再开 100 分帖!怎么取得 iframe 中的 treeview 控件
- <iframe>不能更新,啊!
- iframe 不起作用?解决思路
- iframe 的页面,如何禁止某一个JS呢
- struts 里面的 jsp 页面带有 iframe 的转向问题
- iframe frame 自动顺应所包含的页面大小
- iframe 怎么获取框架外的ID值
- 关于子窗口刷新父窗口(iframe)的有关问题
- IFRAME 刷新的有关问题
- 网站怎样防止被注入<iframe>脚本解决办法