Javascript close alert box

As mentioned previously you really can’t do this. You can do a modal dialog inside the window using a UI framework, or you can have a popup window, with a script that auto-closes after a timeout… each has a negative aspect. The modal window inside the browser won’t create any notification if the window is minimized, and a programmatic (timer based) popup is likely to be blocked by modern browsers, and popup blockers.

Leave a Comment