Jan 17, 2010

How to use for loop in javascript

Just simple! Here i am just looping the number "i" from 0 to 5.

forloop_JS,html

<html>
<body>
<script type="text/javascript">
for (i = 0; i <= 5; i++)
{
document.write("The number is " + i);
document.write("<br />");
}
</script>
<h1>
loop is i=0;i<=5;i++
</h1>
</body>
</html>


--
Regards,
Venki

No comments:

Post a Comment

Saalram.com

Saalram
Publicize yourself ...
http://saalram.com

Free !!!


Place your Ad here - Free!!!
just drop us a mail ... saalram.service@gmail.com

Free !!!