title: prompt() with Internet Explorer 8
body: <p>I am having a hard time figuring out a solution for my problem. Here's a code snippet:</p>
  
  <pre><code>var ans = prompt("Mot de passe", '');
  if (ans != '' &amp;&amp; ans != null)
     __doPostBack('__Page', ans);
  else
     window.location = "../Erreurs/NotAuthorized.aspx";
  </code></pre>
  
  <p>This code works really great with Internet Explorer 9. But my client is exclusively working with Internet Explorer 8 so I tested it with ieTester in IE8. But the problem is that <strong>the prompt doesn't show</strong> and it automatically redirect because the input had an empty string ('').</p>
  
  <p>So how do I fix this to work with Internet Explorer 8?</p>