title: Javascript close alert box
body: <p>I want to be able to close an alert box automatically using Javascript after a certain amount of time or on a specific event (i.e. <code>onkeypress</code>).  From my research, it doesn't look like that's possible with the built-in <code>alert()</code> function.  Is there a way to override it and have control over the dialog box that it opens?</p>
  
  <p>Also, I don't want an override that shows a hidden div as the alert.  I need an actual dialog box.</p>