Javascript Reference
Categories: Operators

javascript Operators break

@July 28, 2008, 4:54 a.m.
break Firefox/Netscape/NN 2 IE 3 ECMA 1  



Stops execution of the current loop and returns control to the next script statement following the end of the current loop. Note that without a label parameter, the scope of the break statement is its own loop. To break out of a nested loop, assign labels to each nested layer, and use the desired label as a parameter with the break statement. See the label statement (available only starting with Navigator 4 and Internet Explorer 4).


See the  label statement.

Powered by Linode.