<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title> 演示示例:history的用法 </title>
  <meta http-equiv = "content-type" content ="text/html;charset=utf-8" /> 
  <meta name="keywords" content="">
  <meta name="description" content=""> 
 </head>  
 <body> 
   <h3>Home页面</h3>
  <a href="home.html">home</a><br/>
  <a href="page01.html">page01</a> <br/>
  <a href="javascript:history.forward();">forward()前进一页面</a><br/>
  <a href="javascript:history.go(1);">go(1)前进一页面</a> <br/>
   


 </body>
</html>

上面是home.html

 

下面是page01.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title> 演示示例:history的用法 </title>
  <meta http-equiv = "content-type" content ="text/html;charset=utf-8" /> 
  <meta name="keywords" content="">
  <meta name="description" content=""> 
 </head>  
 <body> 
  <h3>page01页面</h3>
  <a href="home.html">home</a><br/>
  <a href="javascript:window.history.back();">back()返回上一页面</a><br/>
  <a href="javascript:window.history.go(-1);">go(-1)返回上一页面</a>
     



 </body>
</html>