how to set counet down in aleart box using java script

Posted by Santosh4u under JavaScript on 5/6/2011 | Points: 10 | Views : 1878 | Status : [Member] | Replies : 1
hi
can any one plz tell me how to set count down in alert box using java script.

i want to show the timer count down in alert message till zero and once it will be zero then alert message should close...



Regards
Santosh




Responses

Posted by: SheoNarayan on: 5/6/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
In JavaScript alert method its might not be possible. However you can show a hidden div (that should look like popup) and apply timer using setTimeout method.

Read more about it http://www.dotnetfunda.com/codes/code244-use-of-javascripts-settimeout.aspx or http://www.dotnetfunda.com/codes/code411-display-a-digital-clock-on-the-webbrowser-.aspx.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Santosh4u, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response