Cookie のように確認する必要があるサイトがあります。しかし、モバイルのコンセプトなので、ローカル ストレージを使用したいと考えています。テストを通じてアイテムが設定されていることは知っていますが、そうでない場合、ページをリダイレクトできません。
<script language="javascript">
if (localStorage.getItem('itemVerified') = 'True') {
window.location = "success.html";
}
else {
alert("You are not able to enter this site!");
window.location = "error.html";
}
</script>