<script language="JavaScript">
var password;
var pass1="apple";
password=prompt('Password?',' ');
if (password!=pass1) {window.location="WRONG.html";}
</script>
此代码在桌面 chrome、firefox、safari 等上运行良好。但是当我在移动浏览器(如移动 chrome 或移动 safari)中加载页面时,我每次都会被重定向到“wrong.html”。我错过了什么?