electron : dialog box with window.prompt
<p>In <a href="https://github.com/electron/electron-quick-start" rel="nofollow">electron quick start demo</a>, I added this in index.html :</p>

<pre><code>&lt;script&gt;
  query = window.prompt("What are you looking for?", "");
&lt;/script&gt;
</code></pre>

<p>But it doesn't work when doing <code>npm start</code>. Why doesn't <code>window.prompt</code> work?</p>