location.replace
location.replaceを使う事で移動元?のURLを記録しないので戻るボタン等が無効化できるらしい
<html>
<body onload="location.replace('hoge.html')">
</body>
</html>
実行するとhoge.htmlが表示されるが、戻るボタンは無効化されたままになる。試しにlocation.hrefも試してみるとすぐ分かるはず...
location.replaceを使う事で移動元?のURLを記録しないので戻るボタン等が無効化できるらしい
<html>
<body onload="location.replace('hoge.html')">
</body>
</html>
実行するとhoge.htmlが表示されるが、戻るボタンは無効化されたままになる。試しにlocation.hrefも試してみるとすぐ分かるはず...