title: Alternative to Javascript's prompt() for Google Chrome Web App
body: <p>I'm currently developing a Chrome Web App using the <a href="http://developer.chrome.com/apps/api_index.html" rel="nofollow">Chrome Platform APIs</a> and Javascript and <strong>I simply can't find a way to display a prompt()</strong> dialog to ask the user for a value, in a way that prevents him from clicking anywhere else until he enters a value and accepts or cancels (meaning, EXACTLY how it works with Javascript).</p>
  
  <p>My problem is, I just can't find a way to do this with the Chrome Platform APIs (note that prompt(), alert() and confirm() can't be used in packaged apps). I already checked questions similar to mine and they all point to the Google App Script documentation, which doesn't work for Chrome Apps. </p>
  
  <p>The only "solution" that I've really found is making a new window, enabling singleton so that it can only be an instance of it and displaying a form there, getting the value when the user accepts(I haven't really finished that last part, I need a way to check when the window is being closed by a button). Still, this is kind of a lot for a simple dialog. </p>
  
  <p><strong>Is there a simple way to do this that I'm missing or is the "intended" way to do this to use multiple windows?</strong></p>