Looping through the headers in javascript
By admin | November 10, 2007
Well 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
Topics: Javascript | Comments Off on Looping through the headers in javascript
Related Links: