Looping through the headers in javascript
Saturday, November 10th, 2007Well it is a good thing to look at looping examples to learn it thoroughly:
example looping through the headers
<html>
<body>
<script type=”text/javascript”>
for (i = 1; i <= 6; i++)
{
document.write(“<h” + i + “><center>welcome to the jungle</center>”)
document.write(“</h” + i + “>”)
}
</script>
</body>
</html>
This will loop through the heading tags using the for event
Thanks
krates