history.forward()

書式

history.forward()

説明

1つ先のページに進みます。ただし、表示すべきページが閲覧済みでない場合(履歴にない場合)は次のページには移動しません。

サンプルコード [実行]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<script type="text/javascript"><!--
function hisForward() {
history.forward();
}
// --></script>
</head>
<body>
<form>
<input type="button" value="Forward" onClick="hisForward()">
</form>
</body>
</html>