Re: How to use Break and Continue Statements in JavaScripts?
The following code demonstrates more about the break statements. I think that it will help you to understand. Here is an example for the break statement :
HTML Code:
<html>
<body>
<script type="text/javascript">
var i=0;
for (i=0;i<=15;i++)
{
if (i==5)
{
break;
}
document.write("The number is " + i);
document.write("<br />");
}
</script>
</body>
</html>
I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame.
Bookmarks