Continue a while loop : continue « Statement « JavaScript Tutorial
- JavaScript Tutorial
- Statement
- continue
<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
var x = 0;
while (x < 10)
{
x++;
document.write(x);
continue;
document.write("You never see this!");
}
// -->
</script>
</head>
<body>
</body>
</html>