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&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…