i have 50 times of looping with a counter, can i break it to 2 pages to do accumulation. this is an example:
i have a for loop,
for ( var i = 0; i < 50; i++) {
document.write "Number now is :" &i&"<BR>"
}
from the above example the result will be listed 50 lines of
Number now is :1
Number now is :2
Number now is :3
Number now is :4
Number now is :5
.
. until 50 times.
.
Number now is :50
but what i want is
when the loop run until i=25, it will stop for while and shown a link or button "Continue>>", when user click on it, the loop will continue runs from i=26 until 50? Just like PAUSE the loop then play back the loop. can javascript do that?
i have a for loop,
for ( var i = 0; i < 50; i++) {
document.write "Number now is :" &i&"<BR>"
}
from the above example the result will be listed 50 lines of
Number now is :1
Number now is :2
Number now is :3
Number now is :4
Number now is :5
.
. until 50 times.
.
Number now is :50
but what i want is
when the loop run until i=25, it will stop for while and shown a link or button "Continue>>", when user click on it, the loop will continue runs from i=26 until 50? Just like PAUSE the loop then play back the loop. can javascript do that?
Comment