Break out of a while loop
<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
var x = 0;
while (x < 10)
{
x++;
alert(x);
break;
alert("Never seen!");
}
</script>
</head>
<body>
</body>
</html>
Related examples in the same category