我很难找到问题的解决方案.这是一段代码:
- var ans = prompt("Mot de passe",'');
- if (ans != '' && ans != null)
- __doPostBack('__Page',ans);
- else
- window.location = "../Erreurs/NotAuthorized.aspx";
这段代码在Internet Explorer 9中运行得非常好.但是我的客户端专门使用Internet Explorer 8,因此我在IE8中使用ieTester进行了测试.但问题是提示没有显示,它会自动重定向,因为输入有一个空字符串(”).
那么如何解决这个问题才能使用Internet Explorer 8?