JavaScript DHTML/Language Basics/break
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>