history.back():回到历史记录的上一步
eg:两个网页来回跳转
Code:
<!-- 02.html --><body><p>02</p><a href="html/03.html">03.html</a></body>
<!-- 03.html --><body><p>03</p><button id="btn">btn</button><script>var btn = document.getElementById("btn");btn.onclick=function(){history.back();}</script></body>

