<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>
<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>
<input type="button" name="Button" value="Button" onclick="document.ifr1.location.href='postinfo.html'">
<iframe></iframe>中的内容好象不变吧!!
前进:parent.history.length!=0?parent.history.forward():alert('没有历史记录');