`
baiyujie
  • 浏览: 7706 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

iframe框架同步刷新

阅读更多

 function   ref()  
    {  
    hb1.location.reload();  
    hb2.location.reload();  
    setTimeout("ref()",30000);  
  }

///

<script>
parent.location.reload();
</script>


//
parent.frames('FrameName').document.location.reload()

//

<iframe   src=2.html></iframe>  
   
  2.html:  
  <a   onclick="window.opener.location='A.html">A</a>  
  or  
  <a   onclick="parent.window.location='A.html'">A</a>  
  or    
  <a   onclick="top.window.location='A.html'">A</a>

 


//
<a   href="aaaa.asp"   target="frame1"   onclick="top.frames['main'].frames['frame2']"></a>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics