window.frames["iframeName"].history.go(1)

解决方案 »

  1.   

    我的iframe是用<script>document.write("<iframe name=editor></iframe>")</script>生成,能用如上方法么?
      

  2.   

    我用<script>的方法是为了能调整iframe适应屏幕分辨率,另外还有些信息传到iframe内。
    <script language="javascript">
    var meheight = window.screen.height - 178;
    var mewidth = window.screen.width - 10;
    var s = window.location.search; 
    if(s)
    {  var pre = s.split(">");
       var a = pre[0].split("?");
       var b = a[1].split("-");  
       var c = b[0].replace("~","?");
       var d = b[1];
       document.all["div1"].innerText=" "+d;
    }
       document.write("<table border='0' cellspacing='0' cellpadding='0'><tr><td width='6' background='img/frameleft.gif'></td><td width='"+mewidth+"'><IFRAME name=Editor WIDTH='100%' height='"+meheight+"' style='BACKGROUND-COLOR: white;' marginwidth='1' scrolling='yes' src='"+c+"'></IFRAME></td><td width='4' background='img/frameright.gif'></td></tr></table>")
     </script>
      

  3.   

    应该可以的
    meizz(梅花雪)的
    iframeName 改成你的Editor 就OK
      

  4.   

    to:patchclass(黑翼) ,行不通啊。。