Javascript Loops Loops are used to perform an action a number of times, the keyword is for JavaScript <script type="text/javascript"> var i = 0 for(i=0; i<=10; i++) { document.write(i + ". Shahid <BR><HR>") } </script> 1234567 <script type="text/javascript">var i = 0 for(i=0; i<=10; i++) { document.write(i + ". Shahid <BR><HR>") }</script>