<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
</head><body>
<iframe name="ifr1" src="2.htm"></iframe>
<form name="form1" method="post" action="">
  <input type="button" name="Button" value="Button" onclick="document.ifr1.history.back()">
</form>
</body>
</html>

解决方案 »

  1.   

    可是当<iframe></iframe>连接的页面不唯一,也就是不顾定怎么办啊?
      

  2.   

    页面是什么不重要,重要的是<iframe></iframe>你要给它命名 name="XXX",名字也可以用javascript传递过去。比如  
    <input type="button" name="Button" value="Button" onclick="document.ifr1.location.href='postinfo.html'">
      

  3.   

    可是这样不是让当前页面实现前进、后退吗?
    <iframe></iframe>中的内容好象不变吧!!
      

  4.   

    后退:parent.history.length!=0?parent.history.back():alert('没有历史记录');
    前进:parent.history.length!=0?parent.history.forward():alert('没有历史记录');