<!doctype html>
<html>
<head>
<title>前进后退</title>
<meta http-equiv="content-type" content="text/html">
<script type="text/javascript">
function goForward()
{
window.history.go(1);
}
function goBack()
{
window.history.go(-1);
}
</script>
</head>
<body>
<input type="button" value="前进" οnclick="goforward()">
<input type="button" value="后退" οnclick="goBack()">
</body>
</html>
<html>
<head>
<title>前进后退</title>
<meta http-equiv="content-type" content="text/html">
<script type="text/javascript">
function goForward()
{
window.history.go(1);
}
function goBack()
{
window.history.go(-1);
}
</script>
</head>
<body>
<input type="button" value="前进" οnclick="goforward()">
<input type="button" value="后退" οnclick="goBack()">
</body>
</html>