[英]I want clear the cookies of a page when loading from another page but not when the same page is reloaded
[英]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.