指定したページを読み込む
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<title>サンプル</title>
<script type="text/javascript">
<!--
function go_replace() {
	window.location.replace("../index.html");
}
// -->
</script>
</head>
<body>
<a href="javascript:go_replace();">進む</a>
</body>
</html>
直接使用する場合
<a href="javascript:location.replace('../index.html');">次へ</a>
進む 次へ

location.replace("???"); の ??? に移動先の URL を指定してください。location.href と違う点は指定した URL を読み込んで表示しますので、ブラウザの「戻る」では元のページに戻れなくなります。

[PR] ホットペッパー