PDA

View Full Version : countdown before able to close alert box



UD2006
Feb 17th, 2012, 02:43 PM
I want to know how I can make a alert box appear (I know this) but with a countdown before the ok or x buttons can be clicked.

Is this possible?

If so, how.

Thanks

Philip M
Feb 17th, 2012, 04:31 PM
I want to know how I can make a alert box appear (I know this) but with a countdown before the ok or x buttons can be clicked.

Is this possible?

If so, how.

Thanks

Not possible. Javascript does not have a sleep() function. You can delay the appearance of the alert box, but once it has appeared you cannot cause a delay before the user can dismiss it.

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

jackdaniels
Feb 17th, 2012, 05:00 PM
You could try something similar but with a light box, or colorbox. Count down before showing the 'X'.