|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Hi have you any idea how to stop a for loop for a few seconds coz i tried it with number of ways and all in vain.
here is my code. Code:
<script language="javascript">
for(i=1;i<=3;i++){
window.setTimeout("alert('Alert for Time " + i + "')",2000);
}
</script>
Thanks. Ali. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Pausing JavaScript for loop. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|