Previous Example-|-Next Example-|-Return to Chapter Listing
Example 6.13:
A 'for' Loop
The button calls function1(), which uses a 'for' loop. Each time around the loop it displays an alert box with the value of the variable 'i'. Also there is an additional alert box after the loop has finished:
This is the script we used:
Previous Example-|-Next Example-|-Return to Chapter Listing