May 6, 2013

Using For Loop

Coding

<html>
<body>
<script language="JavaScript">
for (i = 1; i <= 6; i++)
{
document.write("<h" + i + ">This is header " + i)
document.write("</h" + i + ">")
}
</script>
</body>
</html>

No comments:

Post a Comment

Popular Posts

Views