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. onkeypress
). From my research, it doesn't look like that's possible with the built-in alert()
function. Is there a way to override it and have control over the dialog box that it opens?
Also, I don't want an override that shows a hidden div as the alert. I need an actual dialog box.
question from:https://stackoverflow.com/questions/463368/javascript-close-alert-box