我有“上 左 右” 三个框架页面包含在在index.html 页面内。我用 <script>location.href='right.html'</script> 对右框架进行跳转操作。同时我想刷新 左框架,怎么弄?也就是我想自动刷新指定框架。

解决方案 »

  1.   

    <script>
    top.左框架名.location.href = top.左框架名.location.href;
    location.href='right.html';
    </script>
      

  2.   

    放到右框架里:<script>
    setTimeout("self.location.reload();",1000);//每秒刷新一次
    </script>
      

  3.   

    同时我想刷新 左框架在刷新右框架时:
    document.getElementById(左框架).location.href = '要刷新的页面。'