...

View Full Version : loops in javascript



cwl157
01-09-2004, 01:35 AM
Is it poosible to create a loop in javascript and if so how do you do this. Thanks.

the_bob
01-09-2004, 01:47 AM
what do you mean by loop?

liorean
01-09-2004, 05:47 AM
the while statement:
while( condition ) statement

the do..while statement:
do statement while( condition )

the for statement:
for( initial expression; condition; loop expression ) statement

the for..in statement:
for( variable in object reference) statement


See some document like <http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/stmt.html#1003191> or <http://www.comptechdoc.org/independent/web/cgi/javamanual/javaloops.html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum