繁体   English   中英

我想在iframe关闭之后重新加载页面,它在加载时重新加载吗?

[英]I want to Reload page after iframe close bt it reloaded at time of loading?

我想在iframe关闭后重新加载页面..怎么做? 我不明白? 请任何人可以帮我这个代码?

 <div class="form-group border-none">
  <div class="col-md-12 ">
 <iframe src="<?php echo $this->base_url; ?>Profile_pic/index/<?php echo $id;   ?>" width="100%" style="border:none; height:52px;">
                    </iframe>
                </div>
             </div>           

       <script language="javascript" type="text/javascript">
            window.onload = function () 
            {
               if (! localStorage.justOnce) 
               {
                localStorage.setItem("justOnce", "true");
                window.location.reload();
                }
            }

        </script>

如果您使用iframe重新加载并且iframe是弹出式,请使用:

parent.window.location.reload();

iframe在parent.window中

如果iframe没有弹出使用:

parent.document.location.reload();

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM