hyljava

刷新窗口的方法

<script type="text/javascript"> 

    window.parent.dialogArguments.document.execCommand('Refresh');   

</script> 

浮层内嵌iframe及frame集合窗口,刷新父页面的多种方法

<script type="text/javascript">   

   window.parent.location.reload();   

</script> 

弹出子页面
<script type="text/javascript">
   window.opener.location.reload();   
</script> 
子窗口刷新父窗口
<script type="text/javascript">
   window.self.opener.location.reload();   
</script> 
刷新以open()方法打开的窗口[上面的弹出子页面也可以完成]
<script type="text/javascript">
     window.opener.location.href=window.opener.location.href;   
</script> 

posted on 2013-04-12 15:53 何云隆 阅读(296) 评论(0)  编辑  收藏 所属分类: JS


只有注册用户登录后才能发表评论。


网站导航: