title: How can I hide the password entered via a JavaScript dialog prompt?
body: <p>How can I hide the password entered by a user in a dialog prompt in JavaScript? For example, using something like</p>
  
  <pre><code>var passwd = prompt("Enter Password : ", "your password here");
  </code></pre>
  
  <p>I would like that when e.g. <code>12345</code> is entered, it appears like <code>*****</code> or <code>.....</code> in the dialog box.</p>
  
  <p>Can anyone suggest how I can do this or provide some example code?</p>