title: Does my own prompt window stops javascript execution?
body: <p>I am new at javascript. I want to make a javascript function to wait until a user input. I know I can use prompt but the window does not look good, so I want to make my own prompt window. I search and found that I can do it using jquery ui or by simply creating my window using html+css+javascript, but my question is: If i create my own prompt window does the function waits until the input is given? Or does it simply calls a function after the input is given?</p>
  
  <p>This is basically what I want to do:</p>
  
  <pre><code>function () 
  {
     var input = MyPrompt(); //Wait here for a user input, like a c scanf
  
     //Rest of the function who will use the input given
  
  }
  </code></pre>
  
  <p>I really need that the javascript function stops executing, like a scanf or a prompt would do. Because most of the solutions I found simply call a function after you click the "confirm" button</p>
  
  <p>Thanks</p>