first.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script>
function goPage(){
location.href="second.html";//实现页面跳转
}
</script>
</head>
<body>
1111111
<button type="button" onclick="goPage()">页面跳转</button>
</body>
</html>
second.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script>
function goPage(){
location.href="third.html";
}
function back(){
history.back();
history.go(-1);
}
function go(){
history.go(1);
}
</script>
</head>
<body>
22222222
<button type="button" onclick="goPage()">页面跳转</button>
<button type="button" onclick="back()">上一页</button>
<button type="button" onclick="go()">下一页</button>
</body>
</html>
third.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
333333
</body>
</html>