title: window.alert and confirm work, but not prompt
body: <p>I'm trying to display a Javascript prompt for the user to enter data (as prompts are used for). But, it won't show. window.alert shows, and so does window.confirm. But, not prompt.
  Here's the code I'm trying to run:</p>
  
  <pre><code>var is_expired = document.getElementById("is_expired").value;
      if (is_expired == "yes") {
          alert(is_expired);
          var answer = prompt("Are you sure you?");
          alert(answer);
      }
  </code></pre>
  
  <p>When this runs, the if statement is entered. The first alert displays "yes" as it should. But, then, it skips the prompt line. The next alert displays saying "Undefined".</p>
  
  <p>Now, if the only thing I change is the keyword prompt, it will work, as such:</p>
  
  <pre><code>var is_expired = document.getElementById("is_expired").value;
      if (is_expired == "yes") {
          alert(is_expired);
          var answer = confirm("Are you sure you?");
          alert(answer);
      }
  </code></pre>
  
  <p>When I run this, the confirm box appears. If I click Okay, then the next alert says "true" and if I click Cancel the alert says "false".</p>
  
  <p>So, the big takeaway here is that there isn't a syntax error that's causing the Javascript to stop. It's actually skipping over that single line and continuing execution. What's wrong with that line? I've checked multiple sites to ensure it's correct. 
  Adding the second "default" parameter does not help either. I tried that. Also, There are no Javascript errors to indicate the problem.</p>
  
  <p>I went <a href="http://www.w3schools.com/js/tryit.asp?filename=tryjs_prompt" rel="nofollow">here</a> and changed it to my code (I hardcoded is_expired to be yes), and it works there.</p>
  
  <p>Any help would be fantastic. Thanks.</p>
  
  <p>EDIT: To be clear, I'm not relying on W3school's example to be accurate, I used their "try it out" page to test my own code. I also did this on jfiddle and it worked fine. Using the console to check the function returns "undefined".</p>
  
  <p>EDIT2: Actually, scratch that. I accidentally hit enter again when there was no command in the console. The actual output for prompt is:</p>
  
  <pre><code>[12:07:55.940] [object Function]
  </code></pre>