最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Javascript refresh page - Stack Overflow

programmeradmin2浏览0评论

I have a html page with a button pop-up. If I click on this button a new window Pops-up, I do all of my changes in this window and then click the close button. The html page with the popup button should refresh after I closed the pop-up window. Is this possible?

I have a html page with a button pop-up. If I click on this button a new window Pops-up, I do all of my changes in this window and then click the close button. The html page with the popup button should refresh after I closed the pop-up window. Is this possible?

Share Improve this question asked Oct 19, 2009 at 15:17 ElitmiarElitmiar 36.9k77 gold badges182 silver badges233 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 10

yes.

//reload opener...
window.opener.location.reload();
//close self...
window.close();
<body onunload="opener.location.reload(true);">
<script>function reload(){document.location = document.location}</script>
发布评论

评论列表(0)

  1. 暂无评论