<html>
<head>
<title>Test</title>
</head>
<body>
<script type="text/javascript">
<!--
var i = 0;
while (i < 6) 
{
   Ende:
   if (i == 3) 
   {
      alert("Das war's, denn i ist gleich " + i);
      break Ende;
   }

   i++;
 }
// -->
</script>
</body>
</html>