Name
break — NN 2 IE J1 ECMA 1
Synopsis
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).
Syntax
break [label
]
Example
See the label
statement.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.