My JavaScript Tutorials - For Loops
Here's the Javascript:
<script language="JavaScript">
<!--
function jsAlert()
{
for(x = 5; x < 10; x++)
{
alert("x equals " + x);
}
}
// -->
</script>
<a href="javascript:jsAlert()">Press for Alert!</a>
Try it out:
Note: You can see the syntax for Alert on our alert page.