JS怎样刷新父页面

2025-09-07

这次给大家带来JS怎样刷新父页面,JS刷新父页面的注意事项有哪些,下面就是实战案例,一起来看一下。

用iframe、弹出子页面刷新父页面iframe

<script> parent.location.reload(); 

弹出子页面

<script> window.opener.location.reload(); 

子窗口刷新父窗口

<script> self.opener.location.reload(); 

刷新以open()方法打开的窗口

<script> window.opener.location.href=window.opener.location.href; 

刷新以winodw.showModelDialog()方法打开的窗口

<script> window.parent.dialogArguments.document.execCommand('Refresh'); 

相信看了本文案例你已经掌握了方法,更多精彩请关注本站其它相关文章!

推荐阅读:

jQuery必须掌握的API

aja的异步上传插件

标签: js刷新页面

本文地址:https://www.lifejia.cn/news/208401.html

免责声明:本站内容仅用于学习参考,信息和图片素材来源于互联网,如内容侵权与违规,请联系我们进行删除,我们将在三个工作日内处理。联系邮箱:cloudinto#qq.com(把#换成@)