Sullivan Market

a web based full-circle development system



My JavaScript Tutorials - Do...While Loops

Here's the Javascript:

<script language="JavaScript">
<!--
function jsAlert()
{
var x = 5;
do
{
alert("x equals " + x);
x++;
}
while (x < 9);
}

// -->
</script>
<a href="javascript:jsAlert()">Press for Alert!</a>

Try it out:

Press for alert!



Note: You can see the syntax for Alert on our alert page.

Back To JavaScript Tutorials

©2012 SullivanMarket.com