Use of the for Statement
<HTML> <HEAD> <TITLE>Using the For Statement</TITLE> </HEAD> <BODY> <SCRIPT><!-- for(i=1;i<7;++i) document.write("<H"+i+">This is a level "+i+" heading." +"</H"+i+">") // --></SCRIPT> </BODY> </HTML>